Here's the code snippet on generation of the XML
#construct of soap data parameters
my @reqresponse = SOAP::Data->name('RequestTroubleReportCreationRespon
+se' => \@param)->prefix("tML-TA")->attr({'xmlns:tML-TA'=>'http://www.
+ansi.org/tML/TA/tML-TA','xmlns:tML-TABase'=>'http://www.ansi.org/tML/
+TA/tML-TABase'});
my $soap_client = SOAP::Lite
-> ns('http://eBonding/taservice/callback','tns1')
-> autotype(0)
-> proxy('https://url')
-> receive($plainres, $security->value(\$userToken));
#$userToken is for security
which will generate an XML like this:
<SOAP-ENV:Body>
<tns1:receive xmlns:tns1="http://eBonding/taservice/callback"><?xml ve
+rsion="1.0"?>
<tML-TA:RequestTroubleReportCreationResponse xmlns:tML-TA="http://www.
+ansi.org/tML/TA/tML-TA" xmlns:tML-TABase="http://www.ansi.org/tML/TA/
+tML-TABase">
</tML-TA:RequestTroubleReportCreationResponse></tns1:receive>
As you can see on my first post about the 'Needed Body' I need all data inside tns1:receive to be html-safe, angled brackets replaced with & l t ; or & g t ; |