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

Problem with pub.client.http

  • 1.  Problem with pub.client.http

    Posted Mon April 20, 2015 06:57 AM

    Hi

    there is a string,it includes 3 parts A?B and C. A is XML.it use ‘&’ separate them.
    now I use pub.client.http to post this string to a remote server,and it returns Internal Server Error and code 500.but when I use firefox’s http tools post this string,it returns 200,OK.
    Does anyone encounter this problem and how to fix?tks

    Regards
    Ralen


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: Problem with pub.client.http

    Posted Mon April 20, 2015 01:48 PM

    That depends on what kind of server you are posting to, and how it handles the request, check for detailed error on the server side.

    Most likely it’s due to the Content-Type settings for HTTP header.

    you can try to set:
    Content-Type = text/xml
    under headers when calling pub.client:http


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods