Saturday, July 5, 2014

Create a Web Service from a WSDL with Eclipse

  1. Create an empty Dynamic Web Project (New->Project...->Web->Dynamic Web Project).
  2. Important Note: In the "Dynamic Web Project" dialogue, select a version less than 3.0 for the Dynamic web module version, e.g. 2.5. Otherwise, we will get an error of Apache Axis2 Web service runtime in Tomcat v7.0 Server does not support the service project <MyProject> in a later step.
  3. Right click on the project and select New->Others...
  4. In the "Select a wizard" dialogue, select Web Services->Web Service, and click the "Next" button.
  5. Select Top down Java bean Web Service for the Web Service type option. Input the URL of the web service in the Service definition box.
  6. Drag the slider on the left to choose Start service. Click the "Next" button.
  7. Follow the prompts to create the web service and start Tomcat.
  8. The web service skeleton is generated and we can fill in our implementation of the business logic.

No comments:

Get This <