Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/12/8647612/html/index.php:3) in /home/content/12/8647612/html/includes/bootstrap.inc on line 1162

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/12/8647612/html/index.php:3) in /home/content/12/8647612/html/includes/bootstrap.inc on line 1162

Warning: Cannot modify header information - headers already sent by (output started at /home/content/12/8647612/html/index.php:3) in /home/content/12/8647612/html/includes/bootstrap.inc on line 726

Warning: Cannot modify header information - headers already sent by (output started at /home/content/12/8647612/html/index.php:3) in /home/content/12/8647612/html/includes/bootstrap.inc on line 727

Warning: Cannot modify header information - headers already sent by (output started at /home/content/12/8647612/html/index.php:3) in /home/content/12/8647612/html/includes/bootstrap.inc on line 728

Warning: Cannot modify header information - headers already sent by (output started at /home/content/12/8647612/html/index.php:3) in /home/content/12/8647612/html/includes/bootstrap.inc on line 729
How to Pass XML String in SOAPDoc Parm | CompShack.com

You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

How to Pass XML String in SOAPDoc Parm

No replies
Guest's picture
Guest

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""?> John Doe 123456 jdoe@email.com ";

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 < and > 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?