1 Reply Latest reply on Jan 5, 2006 11:30 PM by Alejandro Guizar

    BPEL Process with fault

    Roy Forever Newbie

      Excuse me,

      I have a partnerLink (Normal Web Service) will throw a fault "FaultMessage"
      and I would like to re-throw the fault to client application
      How can I do this?

      <process ...>
       <partnerLinks>
       ...
       <partnerLink name="partnerLink" partnerRole="partnerLink_PartnerRole"
       partnerLinkType="my:partnerLink_PLT"/>
       ...
       </partnerLinks>
       <variables>
       ...
       <variable messageType="imp1:InMessage" name="partnerLinkIn"/>
       <variable messageType="imp1:OutMessage" name="partnerLinkOut"/>
       <variable messageType="imp1:FaultMessage" name="partnerLinkFault"/>
       ...
       </variables>
       <faultHandlers>
       <catchAll>
       <!-- The catchAll haven't catch the fault -->
       <throw faultName="bpws:remoteFault"
       faultVariable="partnerLinkFault"/>
       </catchAll>
       </faultHandlers>
       <sequence>
       ...
       <invoke operation="operation" partnerLink="partnerLink"
       portType="imp1:PartnerLinkPortType" inputVariable="partnerLinkIn"
       outputVariable="partnerLinkOut" faultVariable="partnerLinkFault"/>
       ...
       </sequence>
      </process>
      
      
      
      <?xml version="1.0" encoding="UTF-8"?>
      <definitions ...>
       <import namespace="partnerLinkNamespace" location="partnerLink.wsdl"/>
       ...
      
       <plnk:partnerLinkType name="partnerLink_PLT">
       <plnk:role name="partnerLink_PartnerRole">
       <plnk:portType name="imp1:partnerLinkPortType"/>
       </plnk:role>
       </plnk:partnerLinkType>
       ...
      
       <types>...</types>
      
       <message ...>...</message>
       ...
      
       <portType name="SelfPortType">
       <operation name="selfOperation">
       <input message="my:InMessage" name="input"/>
       <output message="my:OutMessage" name="output"/>
       <fault message="imp1:FaultResult" name="fault"/>
       </operation>
       </portType>
      </definitions>
      


      Thank you very much ^^
      Roy