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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Posting XML to wmtnreceive using java HTTP connection

  • 1.  Posting XML to wmtnreceive using java HTTP connection

    Posted Mon June 23, 2003 07:22 AM

    We are using Trading Networks for exchanging docs with our partners.
    One of our partner is trying to post the data using JAVA HttpURLConnection.
    However they are getting HTTP response code 401 error. The same URL when posted thru a Internet Explorer goes thru.
    The java code creating the URL is as follows:
    String url = “http://SBI324:123epay@172.18.100.3:8888/invoke/wm.tn/receive?%24$xmldata=”;
    String value = " “<?xml><txn-status>SUCCESS</txn-status>”
    String finalurl = url + URLEncoder.encode(value);

    We are completely foxed with this behavior.
    Looking forward to your comments


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


  • 2.  RE: Posting XML to wmtnreceive using java HTTP connection

    Posted Wed June 25, 2003 12:54 AM

    Have you checked your logs if there is anything that helps you to investigate the problem?


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


  • 3.  RE: Posting XML to wmtnreceive using java HTTP connection

    Posted Fri August 29, 2003 04:15 PM

    Harish have you got any solution for that problem
    I think you need to set the userid & password in Http Request header inder “Authorization” tab …If you get resolved in any other way let me know

    Thnkx
    Deepak


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