Rails Savon 传参问题

mumu · December 17, 2015 · 1496 hits

运行如下代码,调用 wcf 方法 pat,传参数 id,在 wcf 中接收参数总是为 null,是什么原因呢?

require "savon"

@URL = "http://10.68.2.17/PacsService/PacsService.svc?wsdl"
client = Savon.client(wsdl: @URL)

puts client.operations

response = client.call(:pat, message: { id:'1' })
xml_result = response.to_s

puts xml_result
No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.