in reply to Re: SOAP: Escaping whole body
in thread SOAP: Escaping whole body

I am using SOAP::Lite

Replies are listed 'Best First'.
Re^3: SOAP: Escaping whole body
by Anonymous Monk on Jan 21, 2016 at 09:23 UTC
    So, what call generated that xml thats not quite what you're after (show some code)?
      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 ;

        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 ;

        Why?