Mark service publish request as in approval state
Publication requests for which the approval has started can send a confirmation back to the service catlog with this call. When sent, the service is displayed as pending approval.
XSL In
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0' xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ser="http://smt-x.com/Services/">
<xsl:template match='/SSPAdapterCall'>
<soap:Envelope>
<soap:Header />
<soap:Body>
<ser:MarkServicePublishRequestAsInApprovalState>
<ser:ServiceGuid><xsl:value-of select="Field[@Name='ServiceGuid']" /></ser:ServiceGuid>
<ser:ServicePublishRequestGuid><xsl:value-of select="Field[@Name='ServicePublishRequestGuid']" /></ser:ServicePublishRequestGuid>
<ser:HashCheck><xsl:value-of select="Field[@Name='HashCheck']" /></ser:HashCheck>
<ser:ActorPersonUniqueIds>
<xsl:call-template name="splitActor" />
</ser:ActorPersonUniqueIds>
</ser:MarkServicePublishRequestAsInApprovalState>
</soap:Body>
</soap:Envelope>
</xsl:template>
<xsl:template name="splitActor">
<xsl:param name="pText" select="Field[@Name='ActorPersonUniqueIds']"/>
<xsl:if test="string-length($pText)">
<xsl:variable name="actorPart" select="substring-before(concat($pText,'||'),'||')" />
<xsl:variable name="restPart" select="substring-after($pText, '||')" />
<ser:string><xsl:value-of select="$actorPart"/></ser:string>
<xsl:call-template name="splitActor">
<xsl:with-param name="pText" select="$restPart"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
XSL Out
<?xml version='1.0' ?>
<xsl:stylesheet
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ssp="http://smt-x.com/Services/"
version='1.0'>
<xsl:template match="/">
<SSPAdapterResult>
<xsl:apply-templates select="/soap:Envelope/soap:Body/ssp:MarkServicePublishRequestAsInApprovalStateResponse/ssp:MarkServicePublishRequestAsInApprovalStateResult"/>
<xsl:apply-templates select="/soap:Envelope/soap:Body/soap:Fault"/>
</SSPAdapterResult>
</xsl:template>
<xsl:template match="/soap:Envelope/soap:Body/ssp:MarkServicePublishRequestAsInApprovalStateResponse/ssp:MarkServicePublishRequestAsInApprovalStateResult">
<Value><xsl:value-of select='.' /></Value>
</xsl:template>
<xsl:template match="/soap:Envelope/soap:Body/soap:Fault">
<Error>code:<xsl:value-of select='soap:faultcode' /><xsl:value-of select='soap:Code/soap:Value' /> - string:<xsl:value-of select='soap:faultstring' /><xsl:value-of select='soap:Reason/soap:Text' /></Error>
</xsl:template>
</xsl:stylesheet>
Last updated
Was this helpful?