You will need to manually tweak the process wsdl for the outbound File/Ftp adapter in order to receive the filename after the interaction. Add an output message of type outbound header to the portType as shown below. Remember that the namespace prefix (hdr) is already defined in the wsdl.
<portType name="Write_ptt">
<operation name="Write">
<input message="tns:PurchaseOrder_msg"/>
<output message="hdr:OutboundHeader_msg"/>
</operation>
</portType>
<operation name="Write">
<input message="tns:PurchaseOrder_msg"/>
<output message="hdr:OutboundHeader_msg"/>
</operation>
</portType>
In the BPEL file, manually create a variable of type outbound header as shown below; the namespace may vary.
<variable name="Invoke_1_Write_OutputVariable" messageType="ns3:OutboundHeader_msg"/>
Use this variable as the outbound variable in the invoke activity
<invoke name="Invoke_1" partnerLink="FileOut"
portType="ns2:Write_ptt" operation="Write"
inputVariable="Invoke_1_Write_InputVariable"
outputVariable="Invoke_1_Write_OutputVariable"/>.
portType="ns2:Write_ptt" operation="Write"
inputVariable="Invoke_1_Write_InputVariable"
outputVariable="Invoke_1_Write_OutputVariable"/>.
0 comments:
Post a Comment