Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. In Servers view, right click on Apache Geronimo Server Runtime and select Add and Remove Projects
  2. In the popup dialog, select the jaxws-converter project, click Add, and then click Finish
    The Web Service will now be deployed, and Geronimo will create the required .wsdl and other required artifacts.
  3. Once the Web Service is deployed on to the server (Server Status says Synchronized), launch a browser and go to the following url:
    http://localhost:8080/jaxws-converter/converter.
    You should see a message from Axis2 engine as below:
  4. You can also view the WSDL file generated by Geronimo based on the annotations specified in source files, by going to the following url:
    http://localhost:8080/jaxws-converter/converter?wsdl

...

Test the Web Service using Eclipse's Web Services Explorer

  1. Go to Eclipse and select From Eclipse's main menu, click Run->Launch the Web Services Explorer from the main menu.
  2. Web Services Explorer opens will open up as shown below:
  3. On the top right corner of this explorer, click on the icon for "WSDL Page". Under Navigation section frame, you will now see WSDL Main (instead of UDDI Main). Click that WSDL Main link to enter the URL of WSDL document. and the Actions frame would show a form as below:
  4. Enter the URL of our your WSDL document i.e http://localhost:8080/jaxws-converter/converter?wsdl in the form and click Go. Now you can see the methods that are exposed by our your Web Service.
  5. Clicking on any method takes us would take you to a page with form asking for input parameters. If you dont don't see any field to enter input arguments click Add.
  6. Enter any argument and examine the status the input arguments and click Go. You can see the output of the Web Service in the Status frame at the bottom to see the result.

...

Developing a client

Now, we will focus on developing a client for our application. We will develop two types of clients to demonstrate how web services can be consumed in both cases.

...