Home arrow Java arrow Page 3 - 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 - Creating the JSP Client with Java Studio Creator 2
(Page 3 of 6 )

Java Studio Creator 2 IDE Overview

Click on the shortcut on the desktop to start the Sun Java Studio Creator 2 IDE which opens up as shown.
 

You can create a project from File-->New Project which opens up the following window.

Choose to create a web project. Make sure you read the description of this category of project. Click on the Next button.

This will open up the New JSF WebApplication with the default project name WebApplication1. This has been changed to Test for this tutorial.

JSF, short for Java Server Faces, is a Java server side technology based on a standard specification for building rich web applications. This is a better and recommended way of building web applications; better, in fact, than just using HTML or Java Server Pages. Sun Java Studio Creator and several other vendors support the JSF; that includes Borland JBuilder, IBM Web Sphere and Oracle JDeveloper. This Model-View-Controller (MVC) architecture runs on top of JSP and Servlets. For more details browse the ASPFree site, the Sun site and others on the Internet.

When you click on the button labeled Finish you will have created the framework for a JSF web application with all the necessary elements as shown. In what follows, only the features required by this tutorial will be discussed. In the web pages folder there will be a Page1.jsp which has been renamed TestHello.jsp. JSP, short for Java Server Pages, are the equivalent of Active Server Pages or Active Server Pages.Net in the Java world. They are files that are processed on the server. Just as you can drag and drop controls on ASP, you can drag and drop controls on the JSP.

The next picture shows the details of a Page1.jsp page. It has several tabbed pages for design, JSP and Java.

On the design page which is in view,  you may drag components from the Palette which is the equivalent of Toolbox in Microsoft IDEs.

The JSP tabbed page shows the JSP file, an XML file with JSP specific tags. Notice the structure of this file and the specific namespaces used.

The web application will be bundled as a package which shows the Java coding of this package as shown.

This next window shows the Servers used by the web application. This window can also be used for adding data sources, web services, and so on. This window will be used in the tutorial. It has items to take care of databases, web services, and Enterprise Java Beans.


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