![]()
Portal Express, Version 6.0
Operating systems: i5/OS, Linux, Windows
Create a Producer definition and consuming a WSRP service by a single XML script
You can use a single XML script to create a Producer definition and then consume WSRP services from that same Producer.
If you consume the WSRP service in an XML script that has already created the Producer in a previous step already (refer to Using the XML configuration interface to create a Producer definition), you only need to specify the following items in the XML script:
- A locate action on the Producer.
- The portlet-app subtag with the groupid attribute.
- The portlet subtag with the handle attribute.
The following XML sample shows how you use the XML configuration interface to integrate a WSRP service as a remote portlet:
<?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"> <portal action="locate"> <wsrp-producer action="locate" uniquename="wps.myProducer1"> <portlet-app action="update" active="true" groupid="_2_00KJL5N5NE0U0FIA_LT"> <portlet action="update" active="true" defaultlocale="en" handle="_5_00KJL5N5NE0U0FIA_FN" name="WSRP_Reminder"> <localedata locale="en"> <title>WSRP Reminder</title> <description>Simple Reminder portlet as Web service</description> </localedata> <access-control externalized="false" owner="undefined" private="false"/> </portlet> </portlet-app> </wsrp-producer> </portal> </request>
Parent topic:
Using the XML configuration interface to work with Producer definitionsRelated concepts
The XML configuration interface