Disabling a Click-to-Action source for a source/target portlet

For a cooperative portlet that acts as both a source and target portlet, it is possible to disable the Click-to-Action source only. The OrderDetail portlet, which sends the tracking id property to other portlets, is used as an example. You must perform the following manual steps:

  1. Delete the nodes displayed in bold italic from a WSDL file similar to the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="OrderDetail_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="OrderIDType">
          <xsd:restriction base="xsd:string">
          </xsd:restriction>
        </xsd:simpleType>
        <xsd:simpleType name="TrackingIDType">
          <xsd:restriction base="xsd:string">
          </xsd:restriction>
        </xsd:simpleType>
      </xsd:schema>  
    </types>
    
    <message name="OrderDetailsRequest">
      <part name="order_Id" type="tns:OrderIDType"/>
    </message>
    
    <message name="OrderDetailsResponse">
      <part name="tracking_Id" type="tns:TrackingIDType"/>
    </message>
    
    <portType name="OrderDetail_Service">
      <operation name="order_Detail">
         <input message="tns:OrderDetailsRequest"/>
         <output message="tns:OrderDetailsResponse"/>
      </operation>
    </portType>
    
    <binding name="OrderDetailBinding" type="tns:OrderDetail_Service">
      <portlet:binding/>
      <operation name="order_Detail">
        <portlet:action name="orderDetails" type="simple" caption="Order.Details" description="Get.details.for.specified.order.id"/>
        <input>
          <portlet:param name="orderId" partname="order_Id" caption="order.id"/>
        </input>
        <output>
          <portlet:param name="trackingId" partname="tracking_Id" caption="tracking.id"/>
        </output>
      </operation>
    </binding>
    </definitions>
    
  2. You can also remove the encodeProperty tag that uses the tracking id property from the corresponding JSP file.
Related concepts
Developing cooperative portlets
Related tasks
Disabling Click-to-Action sources and targets
Disabling one of multiple Click-to-Action source properties
Disabling a Click-to-Action target for a source/target portlet
Disabling one of multiple Click-to-Action targets
Related reference
Web Services Description Language (WSDL) 1.1
WebSphere Portal Information Center
XML Schema Part 2: Datatypes

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