Hammy has asked for the wisdom of the Perl Monks concerning the following question:
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>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP string conversion problem
by bpphillips (Friar) on Sep 20, 2004 at 18:38 UTC | |
by Hammy (Scribe) on Sep 20, 2004 at 18:57 UTC | |
|
Re: SOAP string conversion problem
by ikegami (Patriarch) on Sep 20, 2004 at 17:51 UTC | |
by Hammy (Scribe) on Sep 20, 2004 at 18:12 UTC | |
by ikegami (Patriarch) on Sep 20, 2004 at 18:42 UTC | |
by Hammy (Scribe) on Sep 20, 2004 at 19:07 UTC |