[Version 5.0.2 and later]Developing EJB implementation templates and bindings from a WSDL file

Before you begin

To develop enterprise JavaBean (EJB) implementation templates and bindings from a Web Services Description (WSDL) file, you must obtain the Uniform Resource Locator (URL) of the WSDL file to use.

If it is a local file and you are running the Windows platform, the URL looks like this: file:drive:\path\file_name.wsdl. If you are using the UNIX platform, the URL looks like this: file:/path/file_name.wsdl. You can also specify local files using the absolute or relative file system path.

Implementation templates are generated using the -role develop-server option of the WSDL2Java command.

Templates are generated for an EJB implementation for the following:

The WSDL2Java command also generates bindings and deployment descriptors.

Why and when to perform this task

To develop implementation templates and bindings from a WSDL file:

Steps for this task

  1. Run the WSDL2Java -verbose -role develop-server -container ejb wsdlURL command.
    Since the verbose option is specified, a list of all generated files is displayed when the command runs.

Results

Templates for the implementation and deployment descriptors required to implement a Web service, as well as bindings files. These templates are partially filled with information from the WSDL file.

Example

AddressBook.wsdlWSDL2Java -verbose -role develop-server -container EJB AddressBook.wsdl
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\AddressBookSoapBindingImpl.java.
WSWS3282I: Info: Generating addr\AddressBook_RI.java.
WSWS3282I: Info: Generating addr\AddressBookHome.java.
WSWS3282I: Info: Generating META-INF\webservices.xml.
WSWS3282I: Info: Generating META-INF\ibm-webservices-bnd.xmi.
WSWS3282I: Info: Generating META-INF\AddressBook_mapping.xml.
WSWS3282I: Info: Generating META-INF\ibm-webservices-ext.xmi.

What to do next

Complete the EJB implementation.

Related tasks
Completing the EJB implementation
Developing a new Web service from an existing WSDL file using a stateless session enterprise bean



Searchable topic ID:   twbs_devejbbindings
Last updated: Jun 21, 2007 9:56:50 PM CDT    WebSphere Application Server for z/OS, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/twbs_devejbbindings.html

Library | Support | Terms of Use | Feedback