Sending XML to webMethods

Hi!

I did post one thread before but then i could identify the area which is giving the porblem, but still not reach the solution.

I am trying to send the following xml to the input of my flow service. My sample xml is

<?xml>
<note>
<to>kerry</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>
<![cdata[<?xml>
<ab_req>
<requisitionnumber>1234567890</requisitionnumber>
<job_req_status>2</job_req_status>
<manager>manager name</manager>
</ab_req>
]]>
</body>
</note>

In my flow i do,

  • xmlstringtonode
  • nodetodocument

I am testing in developer as Test---->Trace

Now when i see the content in the document i donot see that CDATA in the body tag.
Any idea why is webMethods not able to distinguish the same. What can i do so that i can have that line. The body tag has the value as,

<?xml>
<ab_req>
<requisitionnumber>1234567890</requisitionnumber>
<job_req_status>2</job_req_status>
<manager>manager name</manager>
</ab_req>

regards,
sandip

xmlNodeToDocument (a.k.a. documentToRecord) strips off the CDATA tag for you. Otherwise you would have to hand parse the tag off in order to send it to a service like xmlStringToXmlNode (a.k.a. stringToDocument).

Be sure to set the “isXML” input parameter on the pub.xml:xmlStringToXMLNode service.