I would expect all '<' characters to be turned to '& l t ;' and all '>' characters to be turned to '& g t ;' (I put in the spaces here because it converts them for display). It converts the '<', but not the '>'. I can not fathom why it converts one type and not the other. Here is the trace:$xml = '<wellmed>MessageList><MessageItem msgtype="5" subject="Bookmar +k from Health Coach"><Patient loginname="' ."$ss|$name|$dob" . '" spo +nsorid="303" /><DocumentList><DocumentItem date="' . "$theDate" .'" f +rom="HealthDialog" time="">abc</DocumentItem></DocumentList></Message +Item></MessageList></wellmed>'; use XML::Simple; use SOAP::Lite +trace; my $data = SOAP::Data->name('data' => "$xml")->type('string')->uri('') +;
Thank You<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-EN +C="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle= +"http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://sc +hemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/X +MLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema"><SOAP +-ENV:Body><namesp1:PerformUpdate xmlns:namesp1="http://di.wellmed.com +/SoapService"><data xmlns="" xsi:type="xsd:string"><wellmed>Messag +eList><MessageItem msgtype="5" subject="Bookmark from Health Coach +"><Patient loginname="111111111|LYNN|19407202" sponsorid="303" />& +lt;DocumentList><DocumentItem date="09/17/04" from="HealthDialog" +time="">abc</DocumentItem></DocumentList></MessageItem></ +MessageList></wellmed></data></namesp1:PerformUpdate></SOAP-ENV:Bo +dy></SOAP-ENV:Envelope>
In reply to SOAP string conversion problem by Hammy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |