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.  REST service POST endpoint cannot parse json stream

    Posted 07/01/21 02:17 PM

    I have exactly the same issue as these guys:

    but no fix is mentioned.

    I’m POSTing Content-Type: application/json to a wM REST endpoint using Postman. I can see the data in the pipeline as jsonStream com.wm.net.HttpInputStream

    When I try to call pub.io:streamToString , I get:

    [ISS.0086.9250] Parameter [inputStream] is not of type: [InputStream]

    Just wondering if anyone had some suggestions. I can try the workaround, but it should just work.

    Thanks for any tips.


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: REST service POST endpoint cannot parse json stream

    Posted 07/02/21 11:40 PM

    Hi. I’m not able to reproduce this in IS 10.7. My service looks like this:

    image

    And my request/response looks like this:

    What version and patch level are you using?


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: REST service POST endpoint cannot parse json stream

    Posted 07/05/21 12:52 PM

    Hi,

    Sorry for the delay.

    Version is 10.5 CoreFix_5. One thing I’ve noticed is that the json comes in as a string. I would have expected an object.

    image

    My Postman is the same as yours, with Content-Type: application/json


    #webMethods
    #Integration-Server-and-ESB