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

How to get the body value with POST method REST

  • 1.  How to get the body value with POST method REST

    Posted Fri October 12, 2018 10:49 AM

    Hello everyone,

    Do someone knows how we can retrieve the body value using POST method when we create a Rest resource through designer ?
    It works when I define a parameter in my process.

    For information, I used getTransportInfo.

    Thank you.

    Regards,


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: How to get the body value with POST method REST

    Posted Sat October 13, 2018 09:24 AM

    Not exactly sure about your requirement, you can try the two options if that helps you.

    1> tracePipeline to capture the payload passed into the pipeline
    2> Add jsonStream as an input for _post and run pub.json:jsonStreamToDocument

    Let me know if you have questions.


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: How to get the body value with POST method REST

    Posted Mon October 15, 2018 07:21 AM

    Hi Nicolas,

    REST implementation (at least in 9.8 version) is more based on convention than on enforced rules.

    This is not a bad thing because as a style REST is more “loose” than others.

    Anyway, it might be as simple as defining a new input for the IS service that you expose.

    I find this blog post very good and always reference it when dealing with REST cases: How to create a REST service in webMethods Integration Server - SOA rocks!

    Go ahead an check it.

    Let us know if it worked.


    #Integration-Server-and-ESB
    #webMethods