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.


#TechXchangePresenter
 View Only
  • 1.  Rest post call for XML

    Posted Thu May 02, 2019 10:59 AM

    Hi All,

    I unable to get node object in pipeline when I do rest post call from soapui/postman with Content-Type = application/xml.
    But I am seeing contentStream {java.lang.String} = ‘com.wm.net.HttpInputStream’ instead node object.

    When I do rest post call from soapui/postman with Content-Type = text/xml then I am getting node object and able to process xml data.

    IS Version: 9.9

    Appreciate your help on this topic.

    Thank you.


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Rest post call for XML

    Posted Fri May 03, 2019 11:36 AM

    check out this KB Article
    KB #: 1786989

    Support for the application/xml MIME type was added in 9.10. Prior to 9.10, there was no ContentHandler for application/xml requests, so the Integration Server would place the incoming payload as an unparsed stream into the pipeline as a variable named contentStream. Starting in 9.10, application/xml content is handled just like text/xml content: the XML ContentHandler will put the content into the pipeline as node.

    To use the old behavior, disassociate the application/xml MIME type from the XML ContentHandler by using the Java API. See the following method in com.wm.app.b2b.server.ServerAPI:


    public static void removeContentHandler(java.lang.String content_type)

    Deregisters a content type from the server. The default content handler will be associated with this content type.

    Parameters:

    content_type - A String specifying the MIME content type to deregistered.



    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Rest post call for XML

    Posted Fri May 03, 2019 01:32 PM

    Hello Tong Wang

    Good Day!

    Thank you very much for your reply, it is helpful.


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods