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
Expand all | Collapse all

REST service POST endpoint cannot parse json stream

  • 1.  REST service POST endpoint cannot parse json stream

    Posted Thu July 01, 2021 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 Fri July 02, 2021 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 Mon July 05, 2021 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