禁用多个单击激活操作源属性中的一个

对于将多个源属性发送至其它 portlet 的协作 portlet,可以除去其中一个源属性定义,而不会影响其它源属性。以 OrderMonth portlet 为例,该 portlet 将名为“order id”和“customer id”的属性发送给其它 portlet。为了除去“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. 还可以从相应 JSP 文件中除去使用 customer id 属性的 encodeProperty 标记。
相关概念
开发协作 portlet
相关任务
禁用单击激活操作源和目标
禁用源/目标 portlet 的单击激活操作源
禁用源/目标 portlet 的单击激活操作目标
禁用多个单击激活操作目标中的一个
相关参考
Web 服务描述语言(WSDL)1.1
WebSphere Portal Information Center
XML 模式第二部分:数据类型

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