从Savon的WSDL获取响应消息,而不向服务发出请求

时间:2015-01-26 15:13:26

标签: ruby-on-rails ruby soap wsdl savon

我想从wsdl文件中获取请求和响应消息的服务,操作和操作。这没有实际调用Web服务。

我设法获得服务,操作和请求消息,但响应是个问题。

使用Savon 2我可以通过执行来检索请求。

client = Savon::Client.new(....)

def get_request
  // list of operations can be found using client.operations
  ops = client.operation(:action_name_here)

  // build the body of the xml inside the message here        
  ops.build(message: { id: 1, name: "User", age: 30 }).to_s
end

但是如何从wsdl获得响应(示例)?

0 个答案:

没有答案
相关问题