Implementing web services applications from existing WSDL files with JAX-RPC
You can develop a web service with an existing Web Services Description Language (WSDL) file using the Java™ API for XML-based RPC (JAX-RPC) programming model.
Before you begin

Locate the WSDL file that defines the web service that you want to implement. You can develop a WSDL or obtain one from an existing web service through email, downloading or a Uniform Resource Locator (URL).
About this task
To develop web services based on the JAX-RPC programming model, you can use a bottom-up development approach starting from existing JavaBeans or enterprise beans or you can use a top-down development approach starting with an existing Web Services Description Language (WSDL) file. This task describes the steps when using the top-down development approach.
When developing a JAX-RPC web service starting from an existing WSDL file, create the JavaBeans or enterprise bean and artifacts that enable the bean as web services and assemble all artifacts that are required for the web service, and deploy the application onto the application server.
- Considerations when using JavaBeans
JavaBeans exposed as JAX-RPC web services are supported only over an HTTP transport.
- Considerations when using enterprise beans
- The enterprise bean must be a stateless session bean.
- Enterprise beans that are exposed as JAX-RPC web services must be packaged in EJB 2.1 or in EJB 3.0 or higher modules.
- For JAX-RPC web services using EJB 2.1 style endpoints, the Web service method parameters must be one of the supported JAX-RPC types. These requirements are documented in the JAX-RPC specification.
- JAX-RPC web services using enterprise beans are supported over an HTTP or Java Message Service (JMS) transport.
Best practice: It is a best practice to use EJB 2.1 style enterprise beans with JAX-RPC applications. bprac
Procedure
Results
You have developed a JAX-RPC web service application by starting with an existing WSDL file.
What to do next
After you deploy the EAR file, test the web service to make sure that it works with the application server.