tags:

views:

581

answers:

1

Hello,

I need to be able to construct a SOAP request using Apache Axis2 and provide the IP address and user agent in the SOAP header to the webservice. Is there a code sample that describes how to do that?

Thanks in advance for the help!

Best wishes Ruchi Kaur.

A: 

The best way is to get the WSDL of the service you are trying to call, and then use the wsdl2java tool to generate a client for you.

If you want to code it yourself, you can use the Axis2 API...an example can be found at this question.

Michael Sharek