How to get the list of inputs for a particular operation in savon gem

谁说胖子不能爱 提交于 2019-12-24 13:28:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!