webMethods

webMethods

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.  How to retrieve input from rest service post method using getTransportInfo

    Posted Tue December 31, 2019 05:02 PM

    Hello,

    I am trying to retrieve my post request from my rest service using pub.flow:getTransportInfo
    When i call my service with a get method, I can retrieve the param from the url inside the pipeline in transport/http/query
    But when I try to call the same service but with a post method and input in body, the transport/http/query is null…

    Is there any other service or how can I retrieve my input using pub.flow:getTransportInfo?

    the call with GET : http://localhost:5555/restv2/YoulTest.resources:addition/?num1=6&num2=10
    with debuggLog ==> query":"num1=6&num2=10

    the call with POST: http://localhost:5555/restv2/YoulTest.resources:addition/
    {
    “num1”: “6”,
    “num2”: “10”
    }
    with debuggLog ==> query is null

    Thanks and regards.


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


  • 2.  RE: How to retrieve input from rest service post method using getTransportInfo

    Posted Thu January 02, 2020 11:03 AM

    Hi Yassine,

    Put num1 and num2 as string/integar params in input signature of the rest service and map it from there.

    Regards,
    Syed Faraz Ahmed


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


  • 3.  RE: How to retrieve input from rest service post method using getTransportInfo

    Posted Thu January 02, 2020 11:34 AM

    Hi,

    Thanks for your response, but it’s not a question of the fields type, it’s about the invoke, I Don’t know which service catch the values…


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


  • 4.  RE: How to retrieve input from rest service post method using getTransportInfo

    Posted Thu January 02, 2020 11:45 AM

    Hi Yassine,

    Are you using any client (ex: Postman Client) to send the data or trying via browser?

    Regards,
    Syed Faraz Ahmed


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


  • 5.  RE: How to retrieve input from rest service post method using getTransportInfo

    Posted Thu January 02, 2020 12:24 PM

    Hi Syed,

    I am using SoapUI.
    application/json
    Method POST


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


  • 6.  RE: How to retrieve input from rest service post method using getTransportInfo

    Posted Sat January 11, 2020 12:56 AM

    AFAIK there is no in-built service to get the pipeline but this can be achieved by writing a java service.


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


  • 7.  RE: How to retrieve input from rest service post method using getTransportInfo

    Posted Mon January 13, 2020 01:48 AM

    Yassine Dayski,
    getTransportInfo service is to get transport info including URL, context etc., but not payload of the request

    GET method query parameters are part of URI, thus it is available in response
    POST method actual content is in the body section and that will be not part of getTransportInfo service response

    Having said that, you shouldn’t use this service to retrieve payload of incoming request. It will be available in pipeline.

    Regards
    Senthil


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