JSP Consumer for a Visual Studio Created Web Service Using Sun Java Studio Creator - Test the Web Service In-situ
(Page 2 of 6 )
Visual Studio makes it really easy (so does Java Studio Creator as you will see) to test the service within the IDE. All you need to do is browse the Service.asmx file on your favorite browser. This is easily done by right clicking the Service.asmx file and from the pop-up menu choose the View in Browser shortcut. The next picture shows the result of such browsing.

As you can see, the two methods HelloWorld() and Curtime() are shown here. The Description argument of the web method Curtime() is also shown. You may click on these links to see what the service returns to the client. In addition to the two methods you also have a hyperlink to the Service Description. When you click on this link it will display to you the well known WSDL file, the web reference. This file will be recognized universally (that is the premise on which web services work).
Clicking on the link Curtime takes you to the web page shown in the next picture which deals with the Curtime() method of the web service. You can see the support for both Soap 1.1 and 1.2.

Now you may invoke the method by clicking on the button labeled Invoke which brings up the next web page as shown.

Now click the back button on the browser to get you back to the ASMX file seen earlier. Now click on the Service Description link to display the following page, the WSDL. The various nodes have been collapsed to keep the page length reasonable. Notice the Address of the page. This will be the information we will be using in the JSP web client.

Next: Creating the JSP Client with Java Studio Creator 2 >>
More Java Articles
More By Jayaram Krishnaswamy