I need to create an xml body that looks like this:
<Input_1>
<Input_data>
<data1 xsi:type="xsd:string">xxxx</data1>
<data2 xsi:type="xsd:string">xxxxx</data1>
</Input_data>
<Processing_options>
<option1 xsd:type="xsd:boolean">1</option1>
<option2 xsd:type="xsd:boolean">1</option2>
</Processing_options>
</Input_1>
The closest I have gotten is this:
<Input_1>
<Input_data>
<data1 xsi:type="xsd:string">xxxx</data1>
<data2 xsi:type="xsd:string">xxxxx</data1>
</Input_data>
</Input_1>
<Input_1>
<Processing_options>
<option1 xsd:type="xsd:boolean">1</option1>
<option2 xsd:type="xsd:boolean">1</option2>
</Processing_options>
</Input_1>
The code I am using is this:
SOAP::Data->name("Input_1" =>
\SOAP::Data->value(
SOAP::Data->name("Input_data" =>
\SOAP::Data->value(
SOAP::Data->type('string')->name("data1" => $value1),
SOAP::Data->type('string')->name("data2" => $value2)))),
\SOAP::Data->value(
SOAP::Data->name("options" =>
\SOAP::Data->value(
SOAP::Data->type('boolean')->name("option1" => $option1),
SOAP::Data->type('boolean')->name("option2" => $option2)))));
What am I doing wrong? From all of the things I have read this looks
like it should work.
Second question the service I am trying to use represents the
boolean values as true or false....not 1 or 0. How do I get the
boolean values to be sent that way.