Replicating XML Request with Savon/Ruby

后端 未结 1 451
面向向阳花
面向向阳花 2021-01-23 11:23

I am trying to avoid using Nokogiri/Builder to build my XML and would like to instead use the Savon gem with Ruby 2.0.0. I have the following request I

相关标签:
1条回答
  • 2021-01-23 11:58

    The namespace on GetList is correct. What you probably need to write is

    soap_client.call(:get_list,
                     :attributes => {'xmlns:b'=>'http://schemas.datacontract.org/'},
                     message: { 'ListRequest' => { 'tns:id' => 1 } }
    

    That won't be the exact solution for your problem, because I don't have access to your wsdl and can't test. But you should get the key to a solution.

    0 讨论(0)
提交回复
热议问题