MARX#51794: Factuur/statusbericht response bericht volgens ketenstandaard MessageService
svn path=/Website/branches/v2017.2/; revision=36704
This commit is contained in:
@@ -20,19 +20,7 @@
|
||||
<!-- ***** RESPONSE naar LEVERANCIER nav. opdracht-insert/update -->
|
||||
<!-- ***** => toevoegen envelop! -->
|
||||
<!-- ******************************************************************* -->
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
|
||||
<soap:Body>
|
||||
<facilitor>
|
||||
<xsl:element name="opdracht">
|
||||
<xsl:attribute name="key">MAR<xsl:value-of select="@key"/></xsl:attribute>
|
||||
<xsl:attribute name="type"><xsl:value-of select="@type"/></xsl:attribute>
|
||||
<returncode><xsl:value-of select="returncode"/></returncode>
|
||||
<returntekst><xsl:value-of select="returntekst"/></returntekst>
|
||||
<datum><xsl:value-of select="datum"/></datum>
|
||||
</xsl:element>
|
||||
</facilitor>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
<xsl:call-template name="SidB_responsemessage"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!-- ******************************************************************* -->
|
||||
@@ -54,6 +42,22 @@
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="SidB_responsemessage">
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
|
||||
<soap:Body>
|
||||
<facilitor>
|
||||
<xsl:element name="opdracht">
|
||||
<xsl:attribute name="key">MAR<xsl:value-of select="@key"/></xsl:attribute>
|
||||
<xsl:attribute name="type"><xsl:value-of select="@type"/></xsl:attribute>
|
||||
<returncode><xsl:value-of select="returncode"/></returncode>
|
||||
<returntekst><xsl:value-of select="returntekst"/></returntekst>
|
||||
<datum><xsl:value-of select="datum"/></datum>
|
||||
</xsl:element>
|
||||
</facilitor>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="facilitor">
|
||||
<xsl:apply-templates select="opdracht"/>
|
||||
</xsl:template>
|
||||
|
||||
29
CUST/MARX/xsl/F_PutOpdrachtSIDB_MS24.xsl
Normal file
29
CUST/MARX/xsl/F_PutOpdrachtSIDB_MS24.xsl
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
||||
xmlns:mes24="http://etim.nl/xmlschemas/messageservice/2.40" version="1.0">
|
||||
<xsl:import href="./F_PutOpdrachtSIDB.xsl"/>
|
||||
<xsl:import href="./F_SIDB_common.xsl"/>
|
||||
<xsl:output method="xml" indent="yes" encoding="utf-8"/>
|
||||
<xsl:decimal-format name="european" decimal-separator="," grouping-separator="."/>
|
||||
<xsl:param name="mode"/>
|
||||
<xsl:variable name="Rev">
|
||||
<!-- Revision van deze cust.xsl -->
|
||||
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:template name="SidB_responsemessage">
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
|
||||
<soap:Body>
|
||||
<mes24:MessageResponse>
|
||||
<mes24:MessageResult>
|
||||
<xsl:choose>
|
||||
<xsl:when test="returncode='0'">true</xsl:when>
|
||||
<xsl:otherwise>false</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</mes24:MessageResult>
|
||||
</mes24:MessageResponse>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
39
CUST/MARX/xsl/F_PutOpdrachtSIDB_MS30.xsl
Normal file
39
CUST/MARX/xsl/F_PutOpdrachtSIDB_MS30.xsl
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
||||
xmlns:mes30="https://www.ketenstandaard.nl/WS/MessageService/3.0" version="1.0">
|
||||
<xsl:import href="./F_PutOpdrachtSIDB.xsl"/>
|
||||
<xsl:import href="./F_SIDB_common.xsl"/>
|
||||
<xsl:output method="xml" indent="yes" encoding="utf-8"/>
|
||||
<xsl:decimal-format name="european" decimal-separator="," grouping-separator="."/>
|
||||
<xsl:param name="mode"/>
|
||||
<xsl:variable name="Rev">
|
||||
<!-- Revision van deze cust.xsl -->
|
||||
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:template name="SidB_responsemessage">
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
|
||||
<soap:Body>
|
||||
<soap:Fault>
|
||||
<faultcode>soap:Server</faultcode>
|
||||
<faultstring>Server error</faultstring>
|
||||
<detail>
|
||||
<FaultDetails>
|
||||
<ErrorCode>900</ErrorCode>
|
||||
<Message xml:lang='nl'>Statusbericht op opdracht MAR<xsl:value-of select="@key"/> levert op <xsl:value-of select="datum"/> volgende fout/error: <xsl:value-of select="returntekst"/></Message>
|
||||
</FaultDetails>
|
||||
</detail>
|
||||
</soap:Fault>
|
||||
<mes30:MessageResponse>
|
||||
<MessageResult>
|
||||
<xsl:choose>
|
||||
<xsl:when test="returncode='0'">true</xsl:when>
|
||||
<xsl:otherwise>false</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</MessageResult>
|
||||
</mes30:MessageResponse>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
40
CUST/MARX/xsl/F_PutOpdrachtSIDB_MS31.xsl
Normal file
40
CUST/MARX/xsl/F_PutOpdrachtSIDB_MS31.xsl
Normal file
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
||||
xmlns:mes31="https://www.ketenstandaard.nl/WS/MessageService/3.1" version="1.0">
|
||||
<xsl:import href="./F_PutOpdrachtSIDB.xsl"/>
|
||||
<xsl:import href="./F_SIDB_common.xsl"/>
|
||||
<xsl:output method="xml" indent="yes" encoding="utf-8"/>
|
||||
<xsl:decimal-format name="european" decimal-separator="," grouping-separator="."/>
|
||||
<xsl:param name="mode"/>
|
||||
<xsl:variable name="Rev">
|
||||
<!-- Revision van deze cust.xsl -->
|
||||
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:template name="SidB_responsemessage">
|
||||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
|
||||
<soap:Body>
|
||||
<soap:Fault>
|
||||
<faultcode>soap:Server</faultcode>
|
||||
<faultstring>Server error</faultstring>
|
||||
<detail>
|
||||
<FaultDetails>
|
||||
<ErrorCode>900</ErrorCode>
|
||||
<Message xml:lang='nl'>Statusbericht op opdracht MAR<xsl:value-of select="@key"/> levert op <xsl:value-of select="datum"/> volgende fout/error: <xsl:value-of select="returntekst"/></Message>
|
||||
</FaultDetails>
|
||||
</detail>
|
||||
</soap:Fault>
|
||||
<mes31:MessageResponse>
|
||||
<MessageResult>
|
||||
<xsl:choose>
|
||||
<xsl:when test="returncode='0'">true</xsl:when>
|
||||
<xsl:otherwise>false</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</MessageResult>
|
||||
</mes31:MessageResponse>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
Reference in New Issue
Block a user