-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: scaffold zds 1.2 soap-endpoint OntvangAsynchroon_Overdragen…
…_v2 (#135) * Implement "genereerBesluitIdentificatie_Di02" SOAP-action * add besluit to configmap and add soapTestCase * refactor VrijeBerichten_v2 soapendpointrouter to use new template * Update on VrijeBerichten_V2 * Add SoapEndpointRouter_OntvangAsynchroon_overdragen_v2 template * Add ontvangAsynchroon_overdragen_v2 to Configmap * Add Proper Error Handeling * Change overdragen -> Overdragen * Rename File * renaming --------- Co-authored-by: Meric Akgul <[email protected]>
- Loading branch information
1 parent
efdcb33
commit 492ea99
Showing
5 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
...igurations/Translate/Configuration_SoapEndpointRouter_OntvangAsynchroon_Overdragen_v2.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<Module xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../FrankConfig.xsd"> | ||
<Adapter name="SoapEndpointRouter_OntvangAsynchroon_Overdragen_v2" | ||
active="${SoapEndpointRouter_OntvangAsynchroon_Overdragen_v2.Active}" | ||
description=""> | ||
<Receiver name="SoapEndpointRouter_OntvangAsynchroon_Overdragen_v2"> | ||
<WebServiceListener name="SoapEndpointRouter_OntvangAsynchroon_Overdragen_v2" address="${zaakbrug.soap.ontvang-asynchroon-overdragen.v2.endpoint}" soap="false"/> | ||
<JdbcErrorStorage | ||
name="JdbcErrorStorage" | ||
datasourceName="jdbc/${database.instance.name}" | ||
slotId="${instance.name}/OntvangAsynchroonOverdragen_v2"/> | ||
</Receiver> | ||
<Pipeline> | ||
<Exits> | ||
<Exit name="EXIT" state="SUCCESS"/> | ||
<Exit name="EXCEPTION" state="ERROR"/> | ||
</Exits> | ||
|
||
<WsdlXmlValidatorPipe | ||
name="ValidateInput" | ||
wsdl="Common/xsd/Zaak-_Documentservices_1_2/zds0120/berichten/zds0120_ontvangAsynchroon_overdragen_zs-dms.wsdl" | ||
> | ||
<Forward name="success" path="UnwrapSoapMessage"/> | ||
<Forward name="failure" path="WsdlValidationSoftFailForwarder"/> | ||
</WsdlXmlValidatorPipe> | ||
|
||
<XmlSwitchPipe | ||
name="WsdlValidationSoftFailForwarder" | ||
xpathExpression="$SoftFail = true()" | ||
> | ||
<Param name="SoftFail" value="${zaakbrug.soap.ontvang-asynchroon-overdragen.v2.validation-soft-fail}" type="BOOLEAN"/> | ||
<Forward name="true" path="UnwrapSoapMessage" /> | ||
<Forward name="false" path="InvalidXml" /> | ||
</XmlSwitchPipe> | ||
|
||
<SoapWrapperPipe | ||
name="UnwrapSoapMessage" | ||
storeResultInSessionKey="UnwrapMessageResult" | ||
direction="UNWRAP" | ||
removeOutputNamespaces="true"> | ||
<Forward name="success" path="SanitizeSoapAction"/> | ||
</SoapWrapperPipe> | ||
|
||
<XsltPipe | ||
name="SanitizeSoapAction" | ||
xpathExpression="replace($Action, '/', '_')" | ||
storeResultInSessionKey="SatitizedSoapAction" | ||
> | ||
<Param name="Action" sessionKey="SOAPAction"/> | ||
<Forward name="success" path="ActionSwitch"/> | ||
<Forward name="error" path="BackEndError"/> | ||
</XsltPipe> | ||
|
||
<XmlSwitchPipe name="ActionSwitch" | ||
forwardNameSessionKey="SatitizedSoapAction" | ||
notFoundForwardName="UnsupportedSoapActionError" | ||
/> | ||
|
||
<!-- SenderPipes --> | ||
|
||
<!-- SoapWrapperPipes --> | ||
|
||
<!-- ERRORS --> | ||
<XsltPipe | ||
name="UnsupportedSoapActionError" | ||
emptyInputReplacement="<EmptyInput/>" | ||
styleSheetName="Common/xsl/BuildError.xsl" | ||
> | ||
<Param name="code" value="TechnicalError" /> <!-- codes: TechnicalError, TranslationError, ConfigurationError--> | ||
<Param name="reason" pattern="Unsupported SOAP-action. No implementation found for: {SOAPAction}" /> | ||
<!-- <Param name="details" sessionKey="" /> --> | ||
<!-- <Param name="detailsXml" type="DOMDOC" /> --> | ||
<Forward name="success" path="BackEndError" /> | ||
<Forward name="exception" path="BackEndError" /> | ||
</XsltPipe> | ||
|
||
<PutInSessionPipe name="InvalidXml"> | ||
<Param name="errorCode" value="INVALID_XML"/> | ||
<Param name="errorReason" value="XML was invalid"/> | ||
<Forward name="success" path="WrapFo03Response" /> | ||
</PutInSessionPipe> | ||
|
||
<PutInSessionPipe name="NotWellFormed"> | ||
<Param name="errorCode" value="NOT_WELL_FORMED_XML"/> | ||
<Param name="errorReason" value="XML was not according to xsd"/> | ||
<Forward name="success" path="WrapFo03Response"/> | ||
</PutInSessionPipe> | ||
|
||
<PutInSessionPipe name="BackEndError" unlessSessionKey="errorCode"> | ||
<Param name="errorCode" styleSheetName="Common/xsl/BackEndError.xsl"/> | ||
<Param name="errorReason" xpathExpression="/error/reason"/> | ||
<Param name="errorDetailText" xpathExpression="concat(/error/code, ' ', /error/reason, ' ', /error/details)"/> | ||
<Param name="errorDetailXML" xpathExpression="/error/detailsXml" type="DOMDOC" /> | ||
<Forward name="success" path="WrapFo03Response"/> | ||
</PutInSessionPipe> | ||
|
||
<SoapWrapperPipe | ||
name="WrapFo03Response" | ||
soapBodyStyleSheet="Common/xsl/CreateFo03Response.xslt" | ||
> | ||
<Param name="UnwrapMessageResult" sessionKey="UnwrapMessageResult" type="DOMDOC"/> | ||
<Param name="errorCode" sessionKey="errorCode"/> | ||
<Param name="errorReason" sessionKey="errorReason"/> | ||
<Param name="errorDetailText" sessionKey="errorDetailText"/> | ||
<Param name="errorDetailXML" sessionKey="errorDetailXML" type="DOMDOC"/> | ||
<Forward name="success" path="EXIT"/> | ||
</SoapWrapperPipe> | ||
</Pipeline> | ||
</Adapter> | ||
</Module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters