IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  How to extract Payload from Soap message

    Posted 11/07/10 08:08 PM

    Hi,

    I have a requirement where they will post a data to a service where I need to extract the payload and do some other stuff.

    The data looks like this,

    <soap:Envelope xmlns:soap=“http://www.w3.org/..../../soap-envelope” xmlns:aaf=“http://abc.com”>
    soap:Header/
    soap:Body
    aaf:Dispatch
    aaf:strXmlxmlpayload will be here</aaf:strXml>
    </aaf:Dispatch>
    </soap:Body>
    </soap:Envelope>

    The thing is that I dont need the soap wrapper…I only need the payload which is present. I need to extract the payload. How can I achieve this. Please let me know…I am very new to this soap envelopes.


    #webMethods
    #soa
    #API-Management


  • 2.  RE: How to extract Payload from Soap message

    Posted 11/08/10 07:39 AM

    Hi David,

    There is a set of built-in services available that can act on the soapData. Go thru them under the folder SOAP in the built-in services reference document.

    To answer your question, use this service: pub.soap.utils:getBody which will extract the body as a node from the soap data. Then you can convert it any format you wish.

    -HTH


    #webMethods
    #soa
    #API-Management


  • 3.  RE: How to extract Payload from Soap message

    Posted 11/08/10 06:36 PM

    Hi Suren,

    Thanks for your reply.

    I tried doing this. I am treating the incoming data as string. Then I am converting it to SoapData using stringtoSoapData service and passing the SoapData to getbody service in soap utils and then it is extracting the payload.

    Thanks much for your response.

    Regards,
    David.


    #API-Management
    #webMethods
    #soa