Skip to content

Instantly share code, notes, and snippets.

@lukevers
Created May 26, 2016 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukevers/49727cb45b095cf6720ad9a9a361a322 to your computer and use it in GitHub Desktop.
Save lukevers/49727cb45b095cf6720ad9a9a361a322 to your computer and use it in GitHub Desktop.
Get raw XML from xmlrpc
# https://www.ruby-forum.com/topic/111899
class XMLRPC::Client
def mycall(method, *args)
request = create().methodCall(method, *args)
data = do_rpc(request, false)
end
end
# .call
# - normal (hash/array output)
#
# .mycall
# - xml output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment