Thursday, April 12, 2012

How to send and receive SOAP headers in Oracle BPEL

You can receive, reply the SOAP headers in Oracle BPEL by using the following Oracle extension:

       bpelx:headerVariable="Header1 Header2..."

Sample:



<reply name="ReplyExecuteOrderResponse"
       partnerLink="ExecuteOrderClient"
       portType="ns2:OrderManagementPortType_v1"
       operation="ExecuteOrder"
       variable="ExecuteOrderResponse"
       bpelx:headerVariable="ResponseHeader"/>




<receive name="RecieveExecuteOrder"
         createInstance="yes"
         partnerLink="ExecuteOrderClient"
         portType="ns2:OrderManagementPortType_v1"
         operation="ExecuteOrder"
         variable="ExecuteOrderRequest"
         bpelx:headerVariable="RequetHeader"/>



You can send the SOAP headers in Oracle BPEL in invoke activity  by using the following Oracle extension:

      bpelx:inputHeaderVariable="Header1, Header2,..."

Sample:



<invoke name="InvokeAsynMobileActivation"
       partnerLink="MobileActivatuonBPEL.MobileActivationClient"
       portType="ns1:AsyncMobileProductManagementPortType_v1"
       operation="InitiateAsyncActivatePrepaidMobile"
       variable="ActivatePrepaidMobileRequest"
       bpelx:inputHeaderVariable="RequestHeader"/>





No comments:

Post a Comment