Sun Java Studio Creator 2 – Online Help
 

Web Service Tasks: Quick Reference

See Also

This topic describes common tasks that you can perform with web services. For more detailed information, click the links in the right column.

To perform this task... Follow these steps
Add a web service to a group
  1. Right-click the group node and choose Add Web Service.
     
  2. Follow the procedure for adding a web service.
     
Add a web service to a page
  1. In the Servers window , expand the Web Services node.
     
  2. If necessary, expand the node for the web service group.
     
  3. Drag the web service into the page, or right-click the web service node and choose Add to Page.
     
Add a web service to the IDE from a local file
  1. In the Servers window, right-click the Web Services node or the group node and choose Add Web Service.
     
  2. In the Add Web Service dialog box, select Local file and click Browse.
     
  3. In the Open dialog box, browse to the WSDL file, select the file, and click Open.
     
  4. In the Add Web Service dialog box, view the web service information to ensure that it is correct.
     
  5. If desired, test the web service's methods.
     
  6. In the Add Web Service dialog box, click Add.
     
Add a web service to the IDE from a URL
  1. In the Servers window, right-click the Web Services node or the group node and choose Add Web Service.
     
  2. In the Add Web Service dialog box, select URL.
     
  3. If you are behind a firewall, set your HTTP proxy.
     
  4. In the Add Web Service dialog box, type the URL.
     
  5. Click Get Web Service Information to view the web service information to ensure that it is correct.
     
  6. If desired, test the web service's methods.
     
  7. Click Add.
     
Bind a web service to a component
Create a group of web services
  1. In the Servers window, right-click the Web Services node and choose Create Group.
     
  2. Right-click the node that appears and choose Rename.
     
  3. In the Rename dialog box, type the new name.
     
Delete a web service from a page
  • In the Outline window, right-click the web service and choose Delete.
     
Delete a web service from the IDE
  • In the Servers window, right-click the web service and choose Delete.
     
Identify and call methods of web services
  1. If the web service is not part of the IDE, add the web service to the IDE.
     
  2. If the web service has not been added to the page, add the web service to the page.
     
  3. In the Servers window, expand the web-service-name node and port to view a list of available methods.
     
  4. If desired, select a method to see its properties in the Properties window.
     
  5. If desired, test the web service's methods by completing the following steps:
    1. Expand the web-service-name node and the ports node.
       
    2. Right-click the method and choose Test Method.
       
    3. Type a test value for the parameters and click Submit.
       
    4. View the results and click Close.
       

     
  6. Call the methods in your Java code.
     
View the WSDL file for a web service
  1. In the Servers window, expand the Web Services node.
     
  2. If necessary, expand the node for the web service group.
     
  3. Right-click a web service and choose View WSDL.
     
See Also
About Web Services
Working With Web Services
 
 
 
Legal Notices. Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Close