Disabling one of multiple cooperative targets

For a cooperative portlet that performs multiple target actions, it is possible to disable one of the cooperative targets without disturbing the others. TrackingDetail, a target portlet that displays either routing information or tracking detail information, depending on the "tracking id" property that it receives from the source portlet. In order to prevent TrackingDetail from displaying routing information, perform the following manual steps in the example:

Delete the nodes displayed in bold italic from a WSDL file similar to the following:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="Tracking_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="TrackingIDType">
      <xsd:restriction base="xsd:string">
      </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="PersonNameType">
      <xsd:restriction base="xsd:string">
      </xsd:restriction>
    </xsd:simpleType>
  </xsd:schema>
</types>

<message name="trackingDetailsRequest">
  <part name="tracking_id" type="tns:TrackingIDType"/>
</message>

<message name="routingDetailsRequest">
  <part name="tracking_id" type="tns:TrackingIDType"/>
</message>

<message name="trackingDetailsResponse">
  <part name="customer_name" type="tns:PersonNameType"/>
</message>

<portType name="Tracking_Service">
  <operation name="trackingDetails">
     <input message="tns:trackingDetailsRequest"/>
     <output message="tns:trackingDetailsResponse"/>
  </operation>
  <operation name="routingDetails">
     <input message="tns:routingDetailsRequest"/>
  </operation>
</portType>

<binding name="TrackingBinding" type="tns:Tracking_Service">
  <portlet:binding/>
  <operation name="trackingDetails">
    <portlet:action name="trackingDetails" caption="Tracking.Details" description="Get.tracking.details.for.specified.tracking.id" selectOnMultipleMatch="true"/>
    <input>
      <portlet:param name="trackingId" partname="tracking_id" caption="tracking.id"/>
    </input>
    <output>
      <portlet:param name="customerName" partname="customer_name" caption="customer.name" boundTo="session"/>
    </output>
  </operation>
  <operation name="routingDetails">
    <portlet:action name="routingDetails" caption="Routing.Details" description="Get.routing.details.for.specified.tracking.id"/>
    <input>
      <portlet:param name="trackingId" partname="tracking_id" caption="tracking.id"/>
    </input>
  </operation>
</binding>

</definitions>
Related concepts
Developing cooperative portlets
Related tasks
Disabling cooperative sources and targets
Disabling a cooperative target for a source/target portlet
Disabling a cooperative source for a source/target portlet
Disabling one of multiple cooperative sources
Related reference
Web Services Description Language (WSDL) 1.1
WebSphere Portal Information Center
XML Schema Part 2: Datatypes
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.