Home arrow Java arrow Page 4 - 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 - 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.


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 4 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials