複数の連携ソースのうち 1 つを使用不可にする

複数のソース・プロパティーを他のポートレットに送信する連携ポートレットの場合、 ソース・プロパティー定義の 1 つを、他のソース・プロパティー定義はそのままにして、除去することができます。 ここでは、OrderMonth ポートレットを例として使用します。 これは、"order id" および "customer id" という名前のプロパティーを他のポートレットに送信するポートレットです。 "customer id" ソース・プロパティーを除去するためには、以下のステップを手動で実行します。

  1. 以下のような WSDL ファイルから、太字斜体 で示されているノードを削除する。
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="Orders_Service" 
    			targetNamespace="http://www.ibm.com/etools/portal/portletexamples/cooperative/legacy"
    			xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:portlet="http://www.ibm.com/wps/c2a"
    			xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    			xmlns:tns="http://www.ibm.com/etools/portal/portletexamples/cooperative/legacy"
    			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    			xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    
    	<types>
    		<xsd:schema targetNamespace="http://www.ibm.com/etools/portal/portletexamples/cooperative/legacy">
    			<xsd:simpleType name="MonthType">
    				<xsd:restriction base="xsd:string"></xsd:restriction>
    			</xsd:simpleType>
    
    			<xsd:simpleType name="CustomerIDType">
    				<xsd:restriction base="xsd:string"></xsd:restriction>
    			</xsd:simpleType>
    			<xsd:simpleType name="OrderIDType">
    				<xsd:restriction base="xsd:string"></xsd:restriction>
    			</xsd:simpleType>
    		</xsd:schema>
    	</types>
    
    	<message name="OrderMonthRequest">
    		<part name="order_month" type="tns:MonthType"/>
    	</message>
    
    	<message name="OrderMonthResponse">
    		<part name="order_id" type="tns:OrderIDType"/>
    		<part name="customer_id" type="tns:CustomerIDType"/>
    	</message>
    
    	<portType name="OrderMonth_Service">
    		<operation name="order_Month">
    			<input message="tns:OrderMonthRequest"/>
    			<output message="tns:OrderMonthResponse"/>
    		</operation>
    	</portType>
    
    	<binding name="OrderMonthBinding" type="tns:OrderMonth_Service">
    		<portlet:binding/>
    		<operation name="order_Month">
    			<portlet:action name="SHIPPINGORDERSordersForMonth" caption="orders.for.month" description="get.orders.for.specified.month">
    				<portlet:constant-params>
    					<portlet:constant-param name="defaultMonth" value="January"/>
    				</portlet:constant-params>
    			</portlet:action>
    			<input>
    				<portlet:param name="orderMonth" partname="order_month" caption="order.month"/>
    			</input>
    			<output>
    				<portlet:param name="orderId" partname="order_id" caption="order.id"/>
    				<portlet:param name="customerId" partname="customer_id" caption="customer.id"/>
    			</output>
    		</operation>
    	</binding>
    </definitions>
  2. また、Click-to-Action ポートレットの場合、対応する JSP ファイルから、customer id プロパティーを使用する encodeProperty タグを除去することもできます。
関連概念
連携ポートレットの開発
関連タスク
連携ソースおよびターゲットを使用不可にする
ソース/ターゲット・ポートレットで連携ソースを使用不可にする
ソース/ターゲット・ポートレットで連携ターゲットを使用不可にする
複数の連携ターゲットのうち 1 つを使用不可にする
関連資料
Web サービス記述言語 (WSDL) 1.1
WebSphere Portal Information Center
XML スキーマ・パート 2: データ型

(C) Copyright IBM Corporation 2002, 2005. All Rights Reserved.