cancel
Showing results for 
Search instead for 
Did you mean: 

Encoding from >

Former Member
0 Kudos

HI am converting data to

<?xml version='1.0' encoding='UTF-8'?><ns1:OFACCheck xmlns:ns1="http://massmutual.com/webservices"><ns1:XMLRequest>&lt;OFACRequests&gt;&lt;requestcount&gt;1&lt;/requestcount&gt;&lt;/OFACRequests&gt;</ns1:XMLRequest> </ns1:OFACCheck>

but when message goes to wbeservice it is converted to

#60;OFACRequests&#62;&#60;requestcount&#62;1&#60;/requestcount&#62;

#60;/OFACRequests&#62;

But i want to send it in the same way.

Please advise

Thanks

Sebin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

It might not be taking the namespace ns1 correctly. try manually adding the ns1: to all your nodes and check if that solves the problem.

If not try removing the ns1: from the node <XMLRequest>.

The reason it might be occuring is the web service is not able to determine from which namespace are the node associated to. It might be understand them as individual nodes. Also check the settings on your web service for any encoding. In most of the cases, there might be a problem at the webservice also.

Award if helpful,

Sarath.

Former Member
0 Kudos

The problem am facing is when sending &. when it comes out it is converted to ASCII equivalent.

Thanks

Sebin

stefan_grube
Active Contributor
0 Kudos

So you mean: when you send an & then the < and > are changed to ascii equivalent? Or only the &? The latter would be correct behaviour, as & is not allowed in XML.

Regards

Stefan