webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Sending XML to webMethods

    Posted Tue July 29, 2003 07:28 PM

    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


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: Sending XML to webMethods

    Posted Tue July 29, 2003 09:37 PM

    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).


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Sending XML to webMethods

    Posted Fri June 01, 2007 06:14 PM

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


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods