Table of Contents

Search

  1. Preface
  2. Web Service Concepts
  3. Understanding the Web Services Provider
  4. Using the Web Services Hub Console
  5. Batch Web Service Operations
  6. Writing Client Applications
  7. Working with Web Service Sources and Targets
  8. Editing Web Service Sources and Targets
  9. Working with Web Service Mappings
  10. Working with Web Service Workflows
  11. Appendix A: Web Service Sample Client Applications
  12. Appendix B: Configure the Web Browser

Web Services Provider Guide

Web Services Provider Guide

Step 1. Generate Client Proxy Classes in Axis

Step 1. Generate Client Proxy Classes in Axis

You can use the Axis Web Services Toolkit to generate Java client proxy classes for the web service WSDL. Specifically, you can run the WSDL2Java tool to generate the Java proxy class files.
Verify that the WSDL has the correct host name and port number for the web service in the endpoint URL. If the endpoint URL is not correct, update the address element, which is available in the \definitions\service\port hierarchy in the WSDL.
Use the following command to generate the client proxy classes:
java org.apache.axis.wsdl.WSDL2Java -W <
WSDLFile
>
For example, for WSDL named SampleWS.wsdl, run the following command:
java org.apache.axis.wsdl.WSDL2Java -W SampleWS.wsdl
The -W option turns off support for wrapped document literal services.
WSDL2Java generates a class for each data type defined in the WSDL. By default, WSDL2Java generates package names based on the namespaces in the WSDL. Typically, if the namespace is of the form
http://x.y.com
or
urn:x.y.com
, the corresponding package will be
com.y.x
.

0 COMMENTS

We’d like to hear from you!