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:
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