You can develop client bindings from a Web Services Description (WSDL) file for a JAX-RPC web services client.
To develop the client bindings from a WSDL file for JAX-RPC web service applications, you must obtain the Uniform Resource Locator (URL) of the WSDL file to use. You need bindings and deployment descriptors in order for a client to use a web service.
If
the WSDL file is a local file, the URL looks like the following example:
file:drive:\path\file_name.wsdl.
If the WSDL file is a local
file, the URL looks like the following example: file:/path/file_name.wsdl.
You can also specify local files using the absolute or relative file system path.
Generates bindings and deployment descriptors for a client residing in the application client container.
Generates bindings and deployment descriptors for a client that is an enterprise bean in the Enterprise JavaBeans (EJB) module.
Generates bindings and deployment descriptors for a client residing in the web container.
The WSDL2Java command-line
tool is not supported on the z/OS® platform. This functionality
is provided by the assembly tools provided with the z/OS version
of the product. Read about the WSDL2Java command-line
tool for Java API for XML-based Remote Procedure
Call (JAX-RPC) applications to learn more about this tool.
Develop client bindings from a WSDL file by running the appropriate command.
where type is ejb for an enterprise EJB client, web for a JavaBeans client, or client for an application client.
Parsing XML file: file:e:/example/app/topdown/step1/AddressBook.wsdl
WSWS3185I: Info: Parsing XML file: AddressBook.wsdl
WSWS3282I: Info: Generating addr\Address.java.
WSWS3282I: Info: Generating addr\Phone.java.
WSWS3282I: Info: Generating addr\StateType.java.
WSWS3282I: Info: Generating addr\AddressBook.java.
WSWS3282I: Info: Generating addr\AddressBookService.java.
WSWS3282I: Info: Generating META-INF\ibm-webservicesclient-bnd.xmi.
WSWS3282I: Info: Generating META-INF\AddressBook_mapping.xml.
WSWS3282I: Info: Generating META-INF\ibm-webservicesclient-ext.xmi.
Complete the client implementation by writing your client application and then assembling the client artifacts.
.