Skip to content

Commit

Permalink
fix: prevent soap unwrap error on disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
DelanoWAF committed Oct 6, 2023
1 parent c9640aa commit 73be892
Showing 1 changed file with 6 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,18 +277,13 @@

<SenderPipe name="SendDisconnectRequest">
<WebServiceSender sharedResourceRef="SharedHttpSession" methodType="POST" url="${corsa.url}" soapAction="http://bct.nl/Disconnect" soap="false" />
<Forward name="success" path="UnwrapDisconnectResponse" />
<Forward name="success" path="DisconnectSuccessCheck" />
<Forward name="exception" path="storeErrorResponse" />
</SenderPipe>

<SoapWrapperPipe name="UnwrapDisconnectResponse" direction="UNWRAP" removeOutputNamespaces="true">
<Forward name="success" path="DisconnectSuccessCheck" />
<Forward name="exception" path="EXCEPTION" />
</SoapWrapperPipe>

<XmlSwitchPipe
name="DisconnectSuccessCheck"
xpathExpression="DisconnectResponse/DisconnectResult = 'true'">
xpathExpression="//DisconnectResponse/DisconnectResult = 'true'">
<Forward name="true" path="DateTime2Date" />
<Forward name="false" path="storeErrorResponse" />
</XmlSwitchPipe>
Expand Down Expand Up @@ -483,18 +478,13 @@

<SenderPipe name="SendDisconnectRequest">
<WebServiceSender sharedResourceRef="SharedHttpSession" methodType="POST" url="${corsa.url}" soapAction="http://bct.nl/Disconnect" soap="false" />
<Forward name="success" path="UnwrapDisconnectResponse" />
<Forward name="success" path="DisconnectSuccessCheck" />
<Forward name="exception" path="storeErrorResponse" />
</SenderPipe>

<SoapWrapperPipe name="UnwrapDisconnectResponse" direction="UNWRAP" removeOutputNamespaces="true">
<Forward name="success" path="DisconnectSuccessCheck" />
<Forward name="exception" path="EXCEPTION" />
</SoapWrapperPipe>

<XmlSwitchPipe
name="DisconnectSuccessCheck"
xpathExpression="DisconnectResponse/DisconnectResult = 'true'">
xpathExpression="//DisconnectResponse/DisconnectResult = 'true'">
<Forward name="true" path="ReturnResult" />
<Forward name="false" path="storeErrorResponse" />
</XmlSwitchPipe>
Expand Down Expand Up @@ -726,18 +716,13 @@

<SenderPipe name="SendDisconnectRequest">
<WebServiceSender sharedResourceRef="SharedHttpSession" methodType="POST" url="${corsa.url}" soapAction="http://bct.nl/Disconnect" soap="false" />
<Forward name="success" path="UnwrapDisconnectResponse" />
<Forward name="success" path="DisconnectSuccessCheck" />
<Forward name="exception" path="storeErrorResponse" />
</SenderPipe>

<SoapWrapperPipe name="UnwrapDisconnectResponse" direction="UNWRAP" removeOutputNamespaces="true">
<Forward name="success" path="DisconnectSuccessCheck" />
<Forward name="exception" path="EXCEPTION" />
</SoapWrapperPipe>

<XmlSwitchPipe
name="DisconnectSuccessCheck"
xpathExpression="DisconnectResponse/DisconnectResult = 'true'">
xpathExpression="//DisconnectResponse/DisconnectResult = 'true'">
<Forward name="true" path="DateTime2Date" />
<Forward name="false" path="storeErrorResponse" />
</XmlSwitchPipe>
Expand Down

0 comments on commit 73be892

Please sign in to comment.