Hello, I have been given a heck of a lot of good information and documentation for my SOAP problems to date so thank you. I have very strange behavior when converting a string to soap and I am hoping someone has seen this before. The code is simple:
$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('')
+;
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 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>
Thank You