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

    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 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek