Search code examples
javasoap-client

how to create soap client?


I have SOAP server running. I need to write a SOAP client for the server. Can you please suggest plugin in eclipse or give me the URL related to this?

can you please provide me it you have any sample SOAP Client code?

My SOAP client should use complex objects as parmeter/arguments for the SOAP function which is exposed in the SOAP server.


Solution

  • Your question is very vague, so use Apache CXF and follow this tutorial:

    1. This is the most recent (2011) writeup: Creating a SOAP client with either Apache CXF or GlassFish Metro
    2. How to create a WSDL-first SOAP client in Java with CXF and Maven and
    3. This demo illustrates Apache CXF's support for SOAP headers

    Other wise, you can also use Apache AXIS2.