Guidelines for building a client interface

It is recommended to perform the following steps when designing and writing a web services client:

  1. Determine the type of client that you want to create.
  2. Choose the appropriate framework (toolkit) for constructing your web services client.
  3. Use the WSDL source-code generator from your toolkit to generate the client proxy (client stub) from the WSDL.
  4. Use the generated client proxy code as a basis and decide which functions to use in your client code.
  5. Write the custom code for the selected client features.
  6. Test the client.

Generating the client proxy code (client stubs)

To write the web service client, you first need to generate the client stub out of the web service WSDL by using the tool from the framework you selected. You can generate the client stubs against the web service WSDL through the URL or against the copy of the local web service WSDL file.

The following is an example of how you can generate the client stub by using the Axis2 wsdl2java tool:


"%AXIS2_HOME%\bin\wsdl2java.bat" -o iiwsClient -s -sp -p IIWS_Client_stub -S runtime  -uri http://localhost:9080/imws/services/ImpactManager?wsdl
Was this page helpful? Yes No Submitting... Thank you

Comments