Adding a Web Service to a Visual Web JSF Project
See Also
In projects with Visual Web JSF support, to add a web
service to a project, specify the location of the Web Service Definition Language (WSDL) file. A WSDL file
might contain one or more web services. If you add a WSDL file with multiple services to the
IDE, all services referenced in the WSDL file are available to the IDE.
By default, several web services are installed with the IDE.
How you add a web service depends on whether the web service source is stored in a local file
or accessed via a URL.
To add a web service from a local file:
- In the Services 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, click Add.
After you add a web service, its node appears as a subnode of the Web Services node or a group node in the Services window.
To add a web service from a URL:
- In the Services 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.
- If you are using web services deployed to servers on localhost (your own computer),
you might want to modify the browser's settings to specify not to use a proxy server:
- Internet Explorer: From the main menu, choose Tools > Internet
Options.
Click the Connections tab, the LAN Settings button, and
the Advanced button.
Add localhost
to the Do not use proxy list.
- Netscape: From the main menu, choose Edit > Preferences. Open the
Advanced node and select Proxies. Click View. Enter
localhost
in the
Do not use proxy list.
- Mozilla: From the main menu, choose Edit > Preferences. Open the
Advanced node and select Proxies. Enter
localhost
in the No proxy for list.
- In the Add Web Service dialog box, type the URL.
- Click Add.
The web service client is generated, and a new web service node appears under the Web Services or web service group node in the Services window.
See Also
- Add Web Service Dialog Box
- Viewing the WSDL File
- About Web Services in Visual Web JSF Applications
- Creating a Web Service Group
- Adding a Web Service to a Visual Web JSF page
- Deleting a Web Service
- Working With Web Services
- Web Service Tasks: Quick Reference
Legal Notices