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.  How to get my query string params

    Posted 04/01/19 03:04 PM

    Hello,

    I created my first service rest with the method get, it is a service that will call another service using the parameters passed in the url.
    how can I get my param from the following example:

    http://site-pp/use/Catalogue?code=10&zipcode=02160&alfa=false&country=us

    I would like to recover the queryString or the following params : code=10&zipcode=02160&alfa=false&country=us

    Thanks and regards


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


  • 2.  RE: How to get my query string params

    Posted 04/02/19 12:53 AM

    Hi Yassine Dayski,

    You can achieve this by having code,zipcode,alfa,country as input parameter for restservice which you have created and then mapping them to the another service which is called inside.

    find the atachment for visual example

    Thanks,
    Manoj


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


  • 3.  RE: How to get my query string params

    Posted 04/02/19 06:22 AM

    Hello Manoj,

    Thanks for yout response.
    But the concern is the the parameters are not fixed and they change from one request to another.

    exp1 :
    http://site-pp/use/Catalogue?code=10&zipcode=02160&alfa=false&country=us

    exp2:
    http://site-pp/use/Catalogue?code=10&city=blabla&flag=false&street=test

    Regards,


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


  • 4.  RE: How to get my query string params

    Posted 04/02/19 06:41 AM

    I that case you can use pub.flow:getTransportInfo service to read request details like query parameter,requestUrl, method etc and then reuse the pipeline.

    Thanks,
    Manoj


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


  • 5.  RE: How to get my query string params

    Posted 04/02/19 07:04 AM

    I already tried to use it, but the there is no detail about the params inside (you can see my attachment)
    Capture.PNG


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


  • 6.  RE: How to get my query string params

    Posted 04/02/19 09:29 AM

    Hello,

    Can you try calling the service from any rest client. add a debug service to trace query data in IS server log

    Please find the attachement to refer mapping which I have used

    Thanks,
    Manoj


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


  • 7.  RE: How to get my query string params

    Posted 04/03/19 06:42 AM

    Hello Manoj,

    Thank you for your help.
    I had to call service from a rest client and I can recovery my query string.

    Regards.


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