Home arrow Java arrow Page 6 - 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 - The Completed Java Code
(Page 6 of 6 )

The next paragraph shows the complete Java code for this JSP.


Build the project and test the page

We are almost finished. From the main menu click on Build and build the project. There is an option to clean up and build as well, assuming you somehow created unnecessary code while troubleshooting or otherwise. The page can be browsed by running the project. This requires you to highlight the project, in this case Test, after making sure that the TestHello.jsp is marked as the starting page, since the project may contain many other pages as well. You can mark a page to load first by highlighting the page in the project, and right clicking and picking the option Set As Start Page as shown. Presently TestHello.jsp (notice the green arrow head) is the start up page, but you can now make verify.jsp to start first.

When you run the project this is what you see displayed. Before the display shows up a Deployment Progress Manager window pops up showing the progress, during which time you may cancel the process if you wish to do so.

Summary

Java Studio Creator 2 successfully created a JSP client to access the web service created using Visual Studio 2005. The IDE provides excellent support for testing the web service in-situ from many points of the program. It is extremely easy and painless. However, in common with other Java programs the loading of the JSP is slow, especially the first time. The drag and drop feature works quite well except that sometimes it was seen that when a component was removed in the design, the accompanying library references stayed on. However verifying this was not the object of this tutorial, so it was not completely verified.


DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

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