PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

How to Pass XML String in SOAPDoc Parm

edited Jun 20, 2017 5:03AM in PeopleTools and Lifecycle Management - PSFT (MOSC) 1 commentAnswered

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.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center