+

Search Tips   |   Advanced Search

Access the Producer WSDL

As a Producer we provide the URL for the Producer WSDL service description document to the Consumer. The basic WSDL document is available under the following URL:

...where WpsContextRoot is the portal context root set at installation time. We can find its value in the file wkplc.properties.

This URL refers to a WSDL file with the WSRP 2.0 services. When a Consumer portal administrator configures the Consumer portal to interact with the Producer, the Consumer administrator must specify the WSDL URL. The Consumer accesses this URL and reads the contents of the WSDL document, which provides the endpoint addresses of the WSRP 2.0 services. Consumers use these endpoint addresses to communicate with the Producer through the WSRP protocol.

The URL format of the WSRP service endpoint addresses is as follows:

wsrp_context_root references the context root for the WSRP Producer facade servlet. The facade servlet is provided with the wps.ear enterprise application in the HCL WebSphere Portal Server WSRP Facade web module wps_facade.war and controls access to the WSRP web service engine.

We can change the context root for the WSRP Producer with the modify-servlet-path configuration task.

In addition, we can configure and override various settings to manipulate the contents of the WSDL document. To do so, we specify the appropriate parameters in the URL for the WSDL service description document:

To generate the WSDL service description document, the Producer portal uses the following parameters:

  1. Parameters from the URL of the request for the service description document

  2. Sets in the portal Configuration Service

  3. Sets that result from the request for the service description document.

As a result, the portal provides a fallback mechanism for selecting the parameters from the WSDL service description document, depending on which parameters we specify:

  1. If the administrator of the Consumer portal adds parameters as URL parameters to the URL for requesting the service description document, then the Producer portal uses these parameters. For example, it can use the parameters for creating the endpoint addresses of the WSRP web services that are contained in the WSDL document.

  2. If we do not define such a parameter as a URL parameter in the service description document request, then the Producer looks for entries in the portal Configuration Service.

  3. If we do not specify the parameter in the Configuration Service, then the Producer uses the host name and port of the incoming request to generate the endpoint addresses of the WSRP web services that are contained in the WSDL document.


URL parameters

The administrator of the Consumer portal can request a modified WSDL service description document from the Producer. In this document, the Producer modifies the endpoint addresses of the WSRP web services according to URL parameters that the Consumer provided. These parameters that are listed and described in the following table. Here is an example of the supported URL syntax:

The following table lists possible values for URL parameters:

URL parameter Possible values Results in WSDL file
protocol http WSRP endpoint addresses with HTTP protocol
https WSRP endpoint addresses with HTTPs protocol
mixed WSRP endpoint addresses with HTTP and with HTTPs protocol
version v1 WSRP services for WSRP Version 1.0
v2 WSRP services for WSRP Version 2.0
port Integer, for example 80 Port number for HTTP endpoint addresses
portSecure Integer, for example 443 Port number for HTTPs endpoint addresses
hostname Name of the host, for example localhost The host name used for endpoint addresses

Note: The URL parameters do not modify the Producer settings and bindings. They manipulate only the content of the WSDL service description document, for example, for debugging and tracing purposes.


Sets in the portal Config Service

To control the default output for the WSDL document, set the following parameters in the portal configuration service:

Parent topic: Use the portal as a WSRP Producer

References: