运行如下代码,调用 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