CreateFederationConsumer.xml

 

<?xml version="1.0" encoding="UTF-8"?>
<!--
 =================================================================
 * Licensed Materials - Property of IBM
 * (c) Copyright IBM Corp. 2006.  All rights reserved.
 *
 * US Government Users Restricted Rights - Use, duplication or
 * disclosure restricted by GSA ADP Schedule Contract with IBM
 * Corp.
 *
 * DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
 * sample code created by IBM Corporation.  This sample code is
 * not part of any standard or IBM product and is provided to you
 * solely for the purpose of assisting you in the development of
 * your applications.  The code is provided "AS IS", without
 * warranty of any kind.  IBM shall not be liable for any damages
 * arising out of your use of the sample code, even if they have
 * been advised of the possibility of such damages.
 *
 =================================================================
-->

<request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         type="update" 
         xsi:noNamespaceSchemaLocation="PortalConfig_1.4.1.xsd">
    <portal action="locate">

        <!-- This script creates a federation server definition and a federated page on the consumer side. -->
        
        <!-- Create the federation server definition -->
        <federation-server action="update" objectid="federationServer" servertype="PORTAL" authmethod="NONE" uniquename="myfederationserver">
          <federation-url>http://w3.server.de:10038/wps/contenthandler</federation-url>
          <!-- Specify the name of the federation server -->
          <localedata locale="en">
              <title>My Federation Server</title>
          </localedata>
        </federation-server>

        <!-- Locate the parent page -->
        <content-node action="locate" objectid="parent" uniquename="ibm.portal.Home"/>
        <!-- Create the federation page -->
        <content-node action="update" active="true" content-parentref="parent" create-type="explicit" domain="rel" ordinal="12" type="page" uniquename="federationpage" serverref="federationServer">
          <!-- Specify in the display-option how the federated page is embedded.-->
          <supported-markup display-option="iFrame" markup="html" update="set"/>
          <!-- Specify the name of the page -->
          <localedata locale="en">
              <title>My federated page</title>
          </localedata>
          <!-- Specify as ReferencedResourceID the referenced resource from the federation server (objectid or unique name) --> 
          <parameter name="com.ibm.portal.federation.ReferencedResourceID" type="string" update="set"><![CDATA[wps.content.root]]></parameter>
          <!-- Specify in the ReplaceNodeFlag, if the current content-node should be replaced or not. -->
          <parameter name="com.ibm.portal.federation.ReplaceNodeFlag" type="string" update="set"><![CDATA[false]]></parameter>
          <!-- Set the access permissions for the current page -->
          <access-control externalized="false" owner="uid=wpsadmin,o=default organization" private="false"/>
          <!-- Optional a page layout can be defined. --> 
          <component action="update" active="true" deletable="undefined" domain="rel" modifiable="undefined" ordinal="0" orientation="H" type="container" width="undefined">
              <component action="update" active="true" ordinal="0" orientation="V" type="container"/>
              <component action="update" active="true" ordinal="100" orientation="V" type="container"/>
          </component>
        </content-node>
    </portal>
</request>