WebSphere

 

Portal Express, Version 6.0
Operating systems: i5/OS, Linux, Windows

 

XML samples for creating Producer definitions

You can modify use these XML samples and use them to create Producer definitions,

 

XML sample script for creating a Producer definition

You can use these samples to create the Producer definition online or offline.

The following XML sample shows how you use the XML configuration interface to create a Producer if you work offline:

<?xml version="1.0" encoding="UTF-8" ?> 
<request type="update" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:noNamespaceSchemaLocation="PortalConfig_1.2.1.xsd" create-oids="true">
   <portal action="locate">
      <wsrp-producer action="update" uniquename="wps.myProducer1">
         <service-description-url>http://producer_portal_host:producer_port/wp_contextRoot/WSRPServiceDescriptionService          </service-description-url>
         <markup-url>http://producer_portal_host:producer_port/wp_contextRoot/WSRPBaseService</markup-url> 
         <localedata locale="en">
            <title>Producer 1</title> 
         </localedata>
      </wsrp-producer>
   </portal>
</request>

Replace http://producer_portal_host:producer_port/wp_contextRoot with the appropriate values for the environment of your Producer.

This sample specifies the minimum required mandatory WSRP interfaces Service Description and Markup.

 

XML sample script for creating a Producer definition for a Producer who requires registration

The following XML sample shows how you use the XML configuration interface to create a Producer who requires registration. You can use this sample if you work online and have access to the Producer's WSDL document.

<?xml version="1.0" encoding="UTF-8" ?>
<request type="update" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:noNamespaceSchemaLocation="PortalConfig_1.2.1.xsd" create-oids="true">
   <portal action="locate">
      <wsrp-producer action="update" registration-required="true" uniquename="wps.myProducer2">
         <wsdl-url>  http://producer_portal_host:producer_port/wp_contextRoot/wsdl/wsrp_service.wsdl</wsdl-url>
         <parameter name="regprop1" type="string" update="set">value1</parameter>
         <parameter name="regprop2" type="string" update="set">value2</parameter>
         <preferences name="userattributes" update="set">
            <value>cn</value>
            <value>o</value>
            <value>uid</value>
         </preferences>
         <localedata locale="en">
            <title>Producer 2</title>
         </localedata>
      </wsrp-producer>
   </portal>
</request>

Replace http://producer_portal_host:producer_port/wp_contextRoot/wsdl/wsrp_service.wsdl with the appropriate values for the environment of your Producer.

This sample also includes specification of user attributes.

To use this sample with a WebSphere Portal Express Producer portal, set registration-required="false" and remove the parameter tags. This is necessary because the WebSphere Portal Express Producer does not support registration.

 

Parent topic:

Using the XML configuration interface to create a Producer definition