Create a Producer definition
A Producer is a portal that provides WSRP services. Consumers portals can then consume these WSRP services as remote portlets. To enable this, you create and configure a Producer definition.
To work with the Web Service Configuration portlet, click Administration > Portlet Management > Web Services.
To create a new Producer definition from whom you want to consume remote portlets as Web services:
- Click New Producer. Web Service Configuration displays the Create New Producer panel. Work with the fields and options as described in the following steps.
- Type a title for the new Producer. This field is mandatory.
- Type a description for the new Producer. This field is optional.
- Type the URL under which the WSDL service definitions of the new Producer can be accessed. This field is mandatory. You get this information from the Producer.
For example, if the WSRP service Producer is an WebSphere Portal, you can access the WSDL document of the Producer at the following URL: http://producer_portal_host:producer_port/wp_contextRoot/wsdl/wsrp_service.wsdl.
The host and port and the wp_contextRoot directory must match those of the Producer portal installation.
- Type the registration handle. This field is optional.
You have to enter the registration handle if the Producer requires it. You get the registration handle from the Producer. Only Consumers to whom the Producer gave a registration handle can consume the Web services of that Producer.
- Click on the required Advanced Options and configure them. Under the Advanced options you can perform the following tasks:
- Enter registration properties for the Producer. These are properties which are passed on to the Producer during the registration.
- Specify user attributes that you want to be passed on to the Producer when the portal users use the Producer's Web service.
- Click OK to save your data, or click Cancel if you do not want to save them. The portlet returns to the main panel.
You have created the new Producer in the portal, and you can now consume Web services from that Producer. Use the Manage Web Modules portlet to consume Web services.
- Set registration properties for Web service Producers
On the Consumer portal you can create registration properties for a Web service Producer. These properties are passed on to the Producer during the registration.
For example, they can provide information about your or your users' geographical location. The Producer can then adapt the Web service to your location. If many of your users live near the mountains, a travel agent Producer might then provide information or offers for hiking or ski vacation. Setting registration properties is optional and only for Producers that require registration by the Consumer.
- Set user attributes to be passed to a Web service Producer
Set user attributes that you want to be passed on to the Web service Producer. The values for the selected attributes are passed on to the Producer when the portal users use the Producer's Web service.
For example, if you select the attribute for user name, the user's name is passed on to the Producer. As a result, the Producer's Web service can address the portal users by their name. Setting user attributes is optional.
Parent topic:
Use the Web Service Configuration portlet to work with Producer definitions online