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
  • 1.  pub.client:http

    Posted Fri June 21, 2019 04:11 AM

    Hello,

    My requirement is to do a GET on the APIs provided by Elastic Search by passing search parameters in the body as JSON. From postman, am able to successfully query Elastic Search API (Attached a picture). I want to consume same API from webMethods by passing the query body (NOT as query params). So, I am using ‘pub.client:http’, but am unable to figure out how to pass the query in body. Can some one help me on

    1. Is ‘pub.client:http’ right service to consume an outside API thru GET by passing query in body
    2. If it is correct service, how to pass query in body?
    3. If it is not correct service, which is one correct service provided by SAG.

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


  • 2.  RE: pub.client:http

    Posted Sat June 22, 2019 03:06 AM

    You can pass the json request in the field “data/string” to convert the IS document to json string use “pub.json:documentToJSONString”

    Refer the service details from the link:

    http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/integration_server/pie10-4/10-4_Integration_Server_Built_In_Services_Reference.pdf


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


  • 3.  RE: pub.client:http

    Posted Sat June 22, 2019 03:33 AM

    I don’t think service pub.client:http supports body for method get.
    I used to develop a elasticsearch adapter, and I’m using post instead of get for query.
    That works as well.


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


  • 4.  RE: pub.client:http

    Posted Sat June 22, 2019 05:36 AM

    Thanks for the details, good to know that, looks like a limitation for me. I can run a quick test for the GET method passing the request body. I will let you know the results.


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