JSP Consumer for a Visual Studio Created Web Service Using Sun Java Studio Creator - Referencing the Web Service in Java Studio Creator 2
(Page 4 of 6 )
In the Servers window right click on the Web Services node and from the drop-down click on Add Web Service... as shown.

This brings up the Add Web Service window as shown. Now click on the drop-down arrow corresponding to URL and you will see two of the services on the localhost (IIS Intranet Server). Click on the URL related to HelloWorld in the project Jikan.

Now click on the Get Web Service Information and the program completes the parsing of the WSDL and displays the following window.

In the screen you can locate the TestMethod link for the two methods which may be tested here. Now click on the TestMethod link related to the Curtime() method. You will see the following display, wherein you click the button labeled submit.
When you hit the Submit button, the results pane which was empty gets filled with the result returned by the web service as seen in the next window.

Close the Test Web Service method window and click on the Add button to add the web service to the Test Project. This joins the web services node in the Server's window as shown.

You may also test the methods after they have been added to the web servers node by right clicking the method and clicking on the Test Method pop-up menu (this procedure is not shown here). By correctly referencing the WSDL, the web service was successfully added to the project. In the next section the method will be referenced in a JSP.
Next: JSP Client Returning Result from the Web Service >>
More Java Articles
More By Jayaram Krishnaswamy