Sun Java Studio Creator 2 – Online Help
 

Binding a Table Component to a Web Service Method

See Also

After you add the web service to the IDE and to the page, you can call a method by binding it to a Table component. You can use this technique to view the results of the method, but you cannot update it. You do not need to write any Java code.

To bind a Table component to a method:

  1. If the web service is not part of the IDE, add the web service to the IDE.
     
  2. Add the Table component to the Visual Designer.
     
  3. Drag and drop the method onto the table.
     
    For example, consider the following scenario. You want to use the getPersons method of the TravelWS to display names in a table.
    1. If necessary, add TravelWS to the IDE.
       
    2. Drag the Basic > Table component to the page.
       
    3. Drag the getPersons method onto the table.
       

     
See Also
About Web Services
Adding a Web Service to the IDE
Binding a List Component to a Web Service Method
Binding a Simple Component to a Web Service Method
About the Projects and Files Windows
About the Java Editor
 
 
 
Legal Notices. Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Close