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.

 View Only
  • 1.  HTTP Protocol and ContentType

    Posted Wed October 12, 2005 05:25 PM

    Hi,

    My partner is posting an XML document to webMethods IS using HTTP post and setting the content-type to “application/x-icc-xml”

    When the xml is posted to IS, webMethods is placing a variable called “contentStream” with a value com.wm.app.b2b.server.BoundedInputStream in the pipeline.

    Can anyone please help in parsing the XML document with the input as contentStream.

    Thanks,
    Srini.


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


  • 2.  RE: HTTP Protocol and ContentType

    Posted Sun March 05, 2006 07:29 PM

    I am getting the same problem when my partner posts using content-type = “application/octet-stream” .

    I registered the content-type using wm.EDIINT.util:addContentType and made sure the content type is registered in IS in mime.types.

    Still I am getting the above problem:

    webMethods is placing a variable called “contentStream” with a value com.wm.app.b2b.server.BoundedInputStream in the pipeline.

    Can anyone please help in parsing the XML document with the input as contentStream.


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


  • 3.  RE: HTTP Protocol and ContentType

    Posted Tue May 23, 2006 08:09 PM

    The ContentStream Variable needs to be treated like a node and set to
    pub.xml:xmlNodeToDocument.


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


  • 4.  RE: HTTP Protocol and ContentType

    Posted Tue May 23, 2006 09:57 PM

    Sudesh,

    Try this code for converting stream to string further to parse the xml.

    pub.io:streamToBytes(map contentStream object)
    pub.string:bytesToString(extract xml string)
    pub.xml:XmlStringToXMLNode
    pub.xml:xmlNodeToDocument(parses xml to IDATA document)
    Do mapping etc…

    HTH,
    RMG


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


  • 5.  RE: HTTP Protocol and ContentType

    Posted Thu May 25, 2006 07:58 AM

    RMG,
    I am also facing this issue… My partner is posting the data with content-type as text/plain and it is coming in contentStream

    When I try to use pub.io:streamToBytes service it says java.lang.ClassCastException

    what should be done


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