web stats
trouble with a SOAP sender - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 02-01-2010, 07:14 AM
csmith csmith is offline
OBX.2 Kenobi
 
Join Date: Mar 2009
Posts: 57
csmith is an unknown quantity at this point
Default trouble with a SOAP sender

Hi,

I have a SOAP sender that needs to handle the symbols '<' and '>' literally. For example,
it needs to handle values like '<123.3' and '>453.2'

It does so without problems for '>" but not for '<'. When dealing with the latter, it errors
out, saying that my xml is malformed.

I'm logging the messages, so looking there I see, for example:
********************************************
<entry>
<string>value</string>
<string>&gt;2000.0</string>
</entry>
**********************************************
That message is processed without a problem.

I also see, for example:
*************************************************
<entry>
<string>value</string>
<string>&lt;125.0</string>
</entry>
**************************************************
That message is accompanied with errors like the following:
************************************************** ****
ERROR MESSAGE: Error invoking WebService
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTracerg.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
************************************************** *******
Why the problem with &lt; and not with &gt; ?

Any insights would be greatly appreciated!
Reply With Quote
  #2  
Old 02-01-2010, 08:31 AM
csmith csmith is offline
OBX.2 Kenobi
 
Join Date: Mar 2009
Posts: 57
csmith is an unknown quantity at this point
Default

Hi,

I was able to fix the problem with the strategic placement
of a CDATA tag ... my apologies.

Thanks
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:41 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation