Java
  Home arrow Java arrow Page 4 - JSP Consumer for a Visual Studio Created W...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVA

JSP Consumer for a Visual Studio Created Web Service Using Sun Java Studio Creator
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2006-10-03

    Table of Contents:
  • JSP Consumer for a Visual Studio Created Web Service Using Sun Java Studio Creator
  • Test the Web Service In-situ
  • Creating the JSP Client with Java Studio Creator 2
  • Referencing the Web Service in Java Studio Creator 2
  • JSP Client Returning Result from the Web Service
  • The Completed Java Code

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    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.

    More Java Articles
    More By Jayaram Krishnaswamy


       · The last time I did not succeed, thanks to the refurbished, enhanced, Java Studio...
     

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







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek