I am consuming a web service from a third party. One of the parameters in the SOAP Doc is an XML formatted as a string.

 

Let's say I have an XMLDoc with the following data:

 

Local string &strXML = "<?xml version=""1.0""?><users><user> <FName>John</FName> <LName>Doe</LName> <LoginID>123456</LoginID> <Email>jdoe@email.com</Email> </user></users>";

 

Local SoapDoc &SOAPDoc;

&SOAPDoc.AddBody();

&SOAPDoc.AddMethod("UserCreate");

&SOAPDoc.AddParm("strUsersInXML", &strXML);

 

&SOAPXMLDoc = CreateXMLDoc();

&SOAPXMLDoc = &SOAPDoc.XmlDoc;

 

&request = CreateMessage(Operation.NEWUSER);

&request.setXmlDoc(&SOAPXMLDoc);

 

In the &request, the tags in my XML string are changed to &lt; and &gt; So when I call the service, it is unable to interpret the strUsersInXML parameter.

 

How do I code this so that the tags in my XML string are kept as they are?

Views: 40

PeopleSoft Jobs in US

Videos

  • Add Videos
  • View All

© 2024   Created by Maisam Agha.   Powered by

Badges  |  Report an Issue  |  Terms of Service