Home arrow Java arrow Page 2 - JSP Consumer for a Visual Studio Created Web Service Using Sun Java Studio Creator
JAVA

JSP Consumer for a Visual Studio Created Web Service Using Sun Java Studio Creator


It isn't supposed to matter to a web service what platform or programming language it's dealing with. When Sun Java Studio Creator first appeared in beta two years ago, it apparently was not fully compatible with Visual Studio. Now that both languages have changed, it is possible to create a JSP web client in one of them for a simple web service created in the other. This article explains how.

Author Info:
By: Jayaram Krishnaswamy
Rating: 5 stars5 stars5 stars5 stars5 stars / 3
October 03, 2006
TABLE OF CONTENTS:
  1. · JSP Consumer for a Visual Studio Created Web Service Using Sun Java Studio Creator
  2. · Test the Web Service In-situ
  3. · Creating the JSP Client with Java Studio Creator 2
  4. · Referencing the Web Service in Java Studio Creator 2
  5. · JSP Client Returning Result from the Web Service
  6. · The Completed Java Code

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
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.


blog comments powered by Disqus
JAVA ARTICLES

- Deploying Multiple Java Applets as One
- Deploying Java Applets
- Understanding Deployment Frameworks
- Database Programming in Java Using JDBC
- Extension Interfaces and SAX
- Entities, Handlers and SAX
- Advanced SAX
- Conversions and Java Print Streams
- Formatters and Java Print Streams
- Java Print Streams
- Wildcards, Arrays, and Generics in Java
- Wildcards and Generic Methods in Java
- Finishing the Project: Java Web Development ...
- Generics and Limitations in Java
- Getting Started with Java Web Development in...

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 5 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials