Savon SOAP:如何避免请求body标签上的'soap:'前缀?

时间:2011-07-14 19:21:34

标签: ruby xml soap savon

Savon目前正在制作这样的标签: <soap:orderid>R211758537</soap:orderid>

如果没有soap前缀,我如何获得这样的标签? <orderid>R211758537</orderid>

这是我正在使用的代码:

endpoint = "http://www.ioperate.net/ws/order/orderws.asmx?wsdl"
response = session.request endpoint, 'OrderUpload' do
  http.headers["SOAPAction"] = "http://chrome52/webservices/OrderUpload" 

  soap.body = {
    :orderid => R211758537
  }
end

0 个答案:

没有答案