有没有使用SOAP4R的WSDL Parser的例子?我正在尝试列出WSDL文件的所有操作,但我搞不懂:(你能给我一些教程吗?Thx
发布于 2011-10-23 01:58:17
也许这不是您想要的答案,但我建议您切换到Savon。例如,您的任务如下所示(此示例取自github的savon页面):
require "savon"
# create a client for your SOAP service
client = Savon::Client.new("http://service.example.com?wsdl")
client.wsdl.soap_actions
# => [:create_user, :get_user, :get_all_users]
# execute a SOAP request to call the "getUser" action
response = client.request(:get_user) do
soap.body = { :id => 1 }
end
response.body
# => { :get_user_response => { :first_name => "The", :last_name => "Hoff" } }https://stackoverflow.com/questions/7861404
复制相似问题