aspose file tools
The moose likes Web Services and the fly likes How to remove < and > encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "How to remove &lt; and &gt; encoding" Watch "How to remove &lt; and &gt; encoding" New topic
Author

How to remove &lt; and &gt; encoding

Alex Beekman
Greenhorn

Joined: Dec 22, 2004
Posts: 9
I need to send an XML String as a parameter in the body of my SOAP message.

AXIS seems to be converting the <> tags to & lt; and & gt;

What can I do to prevent this from happening? The WSDL belongs to an outside vendor so I can not chage the type to anything other than string.

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope ...>
...
<soapenv:Body>
<MethodName>
<xml>
& lt;Tag1& gt;Need to fix this & lt;/Tag1& gt;
</xml>
</MethodName>
</soapenv:Body>
</soapenv:Envelope>
[ January 04, 2005: Message edited by: Alex Beekman ]
Alex Beekman
Greenhorn

Joined: Dec 22, 2004
Posts: 9
NM - it's correct for those to be there - the parsing error on the server side was related other issues.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to remove &lt; and &gt; encoding
 
Similar Threads
Calling Web Service Method using SAAJ
SOAP body - multiply choice parts
How to obtain more than one Response from a Web Service
Adding payload to SOAP body
Axis and document-literal style