Generating a Web Service Connector Reference
When you want to manually create the user interface for a web service, you can create a web service connector reference in the managed bean. This approach only creates a connector Java class.
If you want to add the web service connector to the user interface, see
Adding a Web Service Connector from Package
Navigator.
Note: | Dragging and dropping a service from the Package Navigator view into the Managed Beans node of the Bindings view is not supported. You must first create a web service descriptor, as described in Creating a Web Service Descriptor. |
You must connect to a
webMethods Integration Server to use this procedure, and the connecting user account must have appropriate ACL permissions. For more information, see
Connecting to
webMethods Integration
Server.
To generate a web service connector reference
1. In the UI Development perspective, open a web or portlet application project, then open the portlet view you want to work with in the editor.
2. In the Package Navigator view, expand the webMethods Integration Server instance and select the web service descriptor you want to reference in your application.
3. Click the Bindings view and expand Managed Beans.
4. Drag the web service descriptor to the web or portlet application listed under the Managed Beans node.
5. In the New Web Service Client wizard, select an authentication method and click Next.
6. Select the web service operations you want to use and click Finish.
The new web service client is added to the application and can be viewed in the Bindings view, as well as in User Interfaces node of the Solutions view. You can also view the wsclient.xml file in the project’s WEB-INF folder in the Navigator view.