如何获取 savon gem 中特定操作的输入列表 [英] How to get the list of inputs for a particular operation in savon gem

查看:20
本文介绍了如何获取 savon gem 中特定操作的输入列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从 savon gem 中的 wsdl 文件中获取特定操作的输入(参数)列表?

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

推荐答案

您可以使用最新版本的 Savon(版本 3)执行此操作:

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

有关更多信息,请参阅第 3 版文档:http://savonrb.com/version3.html.此页面还提供安装此版本的说明.

See the version 3 documentation for more information: http://savonrb.com/version3.html. This page also provides instructions for installing this version.

这篇关于如何获取 savon gem 中特定操作的输入列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆