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.  Reading xml message from HTTP post in 8.0

    Posted 04/27/11 08:03 PM

    Hi,

    I have a flow service in wM 8.0.1.0 which is being called by other application to post xml message via HTTP.

    I have the following input to receive the same:

    stream (object type)
    contentStream (object type)
    node (object type)

    The Cotent-Type has been set to various values like:

    ‘application/xml’
    ‘multipart/form-data’
    ‘application/octet-stream’

    but for all the above scenarios we are receiving the payload in the the below format which I am unable to process it further.

    contentStream {java.lang.String} = ‘com.wm.net.HttpInputStream’

    every attempt to convert it to byte or string using the built-in services is resulting to the following error :

    java.lang.String cannot be cast to java.io.InputStream

    We are getting the above for each of the 3 Content-Type we have tried.

    Please help me understand what needs to be done to convert the xml stream (if at all I can say so…) to string.


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


  • 2.  RE: Reading xml message from HTTP post in 8.0

    Posted 01/31/12 05:08 PM

    If you are receving streams then Try with InputStream(object type) and then do the stream to string conversion:


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


  • 3.  RE: Reading xml message from HTTP post in 8.0

    Posted 01/31/12 10:21 PM

    Have the caller specify the content-type as text/xml

    That should engage the proper content handler in IS and will pass a node object to your service.


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