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 |
- Right-click the group node and choose Add Web Service.
- Follow the procedure for adding a web service.
|
| Add a web service to a page |
- In the
Servers window
, expand the Web Services node.
- If necessary, expand the node for the web service group.
- 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 |
- In the Servers window, right-click the Web Services node or the group node and choose Add Web Service.
- In the Add Web Service dialog box, select Local file and click Browse.
- In the Open dialog box, browse to the WSDL file, select the file, and click Open.
- In the Add Web Service dialog box, view the web service information to ensure that it is correct.
- If desired, test the web service's methods.
- In the Add Web Service dialog box, click Add.
|
| Add a web service to the IDE from a URL |
- In the Servers window, right-click the Web Services node or the group node and choose Add Web Service.
- In the Add Web Service dialog box, select URL.
- If you are behind a firewall, set your HTTP proxy.
- In the Add Web Service dialog box, type the URL.
- Click Get Web Service Information to view the web service information to ensure that it is correct.
- If desired, test the web service's methods.
- Click Add.
|
| Bind a web service to a component |
|
| Create a group of web services |
- In the Servers window, right-click the Web Services node and choose Create Group.
- Right-click the node that appears and choose Rename.
- 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 |
|
| Identify and call methods of web services |
- If the web service is not part of the IDE, add the web service to the IDE.
- If the web service has not been added to the page, add the web service to the page.
- In the Servers window, expand the web-service-name node and port to view a list of available methods.
- If desired, select a method to see its properties in the Properties window.
- If desired, test the web service's methods by completing the following steps:
- Expand the web-service-name node and the ports node.
- Right-click the method and choose Test Method.
- Type a test value for the parameters and click Submit.
- View the results and click Close.
- Call the methods in your Java code.
|
| View the WSDL file for a web service |
- In the Servers window, expand the Web Services node.
- If necessary, expand the node for the web service group.
- Right-click a web service and choose View WSDL.
|