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

Passing XML to a B2B service from a java Client code

  • 1.  Passing XML to a B2B service from a java Client code

    Posted Wed August 07, 2002 04:31 PM

    Hi,
    I created a Webmehtods B2B Flow service whoes input is an XML file. I have generated the java client code also. I need some help to pass a XML file to this service.
    Is there anybody have done this. I would really appreciate if you can help on this.

    Thanks


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 2.  RE: Passing XML to a B2B service from a java Client code

    Posted Tue August 13, 2002 03:07 PM

    To do this, i think you should use the URLConnection class in java to post your xml to the webMethods service. If u desire you could set the content-type but it wont be necessary considering that you would be calling the webMethods service via http post. By doing this you will be specify the paramater names on the url line in the manner of: ?xml=“whatever data u have”.

    If u have multiple inputs to teh service then the format would be: ?parm1=data1+parm2=data2+parm3=…

    Please reference the java class library for the URLConnection class. I think there is also an HTTPconnection class. Also, the webMethods developers user guide has a samle of how to write client code to access a flow service.


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods