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.  Prevent dumps as http reponse

    Posted Thu July 31, 2014 12:36 PM

    Hello forum,

    I have a simple flow service that has two services. The first gets username, password form a incoming call and the second is pub.client:http for a http GET request to a host.
    Problem is that if the http.client fails the server returns 500 and includes the whole dump from the http client ! ! !
    This includes the username and password … :frowning:
    How to prevent this?
    Also I’d like to get the reponsecode and use it in pub.setResponse.

    Regards,
    Plamen


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Prevent dumps as http reponse

    Posted Thu July 31, 2014 02:14 PM

    Do you have a step bytes to string after the http call from the body/bytes or stream and that way you can capture or parse the response and setResponse accordingly the last step.

    Also make sure you drop the vars for auth,data etc…in the http call pipelineout.

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Prevent dumps as http reponse

    Posted Thu July 31, 2014 02:20 PM

    I will use the SEQUENCE option for the flow service. I was not expecting that by default the service dumps everything to the http response body.

    Cheers,
    Plamen


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Prevent dumps as http reponse

    Posted Thu July 31, 2014 05:12 PM

    Hope you know what to do from here having with handling with Try/Catch sequences (best practice)

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Prevent dumps as http reponse

    Posted Fri August 01, 2014 01:11 AM

    Plamen,

    Can you also give a try using Post option and check are you having issue with that as well

    Thanks,


    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Prevent dumps as http reponse

    Posted Fri August 01, 2014 04:41 AM

    Thanks guys,

    With client:http doing POST I also have the dump sent back.

    Regards,
    Plamen


    #Integration-Server-and-ESB
    #webMethods