问题
Is there way to get the list of inputs(arguments) for a particular operation from a wsdl file in savon gem?
https://github.com/savonrb/savon
回答1:
You can do this with the latest version of Savon (version 3):
client = Savon.new('your_wsdl_url')
op = client.operation('yourServiceName', 'yourPortName', :yourOperationName)
op.example_body
See the version 3 documentation for more information: http://savonrb.com/version3.html. This page also provides instructions for installing this version.
来源:https://stackoverflow.com/questions/17319426/how-to-get-the-list-of-inputs-for-a-particular-operation-in-savon-gem