I'm using Savon Ruby gem to call a SOAP API, I have the request almost ready but one thing is bugging still.
savonclient = Savon.client(wsdl: 'test.wsdl',
endpoint: 'http://endpoint.biz/',
log: true,
log_level: :debug,
pretty_print_xml: true,
convert_request_keys_to: :none,
namespaces: { 'xmlns:buggy' => 'http://otherdomain.biz/something.xsd'},
soap_header: { 'buggy:client' => {
"id:property1" => 'value1',
"id:property2" => 'value2'
}
This produces
<env:Header>
<buggy:client>
<id:property1>value1</id:property1>
<id:propert2>value2</id:property2>
</buggy:client>
What I need is to have property after buggy:client, like this:
<buggy:client id:objecttype="something">
I tried adding attributes hash for the soap_header, but it only creates a new attribute below .
Any ideas?