Wednesday, October 13, 2010

BPEL 10g error: "Variable type does not match the operation message type"

Problem:

While developing a BPEL process in Oracle JDeveloper 10g, the Reply activity was giving the following validation error:

Error Variable type does not match the operation message type.
Resolution:

This was directly related to the fact that the fault message defined in the wsdl operation was misspelled. The message "SystemFault" did not actually exist and should have been set to "SummarySystemFault".

<message name="SummarySystemFault">
<part name="fault" element="tns:GetSummarySystemFault"/>
</message>
<portType name="ApprovalAdapterPT">
<operation name="GetSummary">
<input message="tns:GetSummaryRequest"/>
<output message="tns:GetSummaryResponse"/>
<fault name="SummarySystemFault" message="tns:SystemFault"/>
</operation>
</portType>

No comments: