Add log to service publish request

Add log to service publish request

POST https://baseurl/ServiceCatalog/Api.asmx

Query Parameters

NameTypeDescription

ServiceGuid

string

Guid of the service

ServicePublishRequestGuid

string

Guid of the publication process

Text

string

Text to be added to the approval log

HashCheck

string

Hash to verify the authentity of the webservice call. The hash is received from the publication request

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:AddLogToServicePublishRequest>
					<ser:ServiceGuid><xsl:value-of select="Field[@Name='ServiceGuid']" /></ser:ServiceGuid>
					<ser:ServicePublishRequestGuid><xsl:value-of select="Field[@Name='ServicePublishRequestGuid']" /></ser:ServicePublishRequestGuid>
					<ser:Text><xsl:value-of select="Field[@Name='Text']" /></ser:Text>
					<ser:HashCheck><xsl:value-of select="Field[@Name='HashCheck']" /></ser:HashCheck>
				</ser:AddLogToServicePublishRequest>
			</soap:Body>
		</soap:Envelope>
	</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:AddLogToServicePublishRequestResponse/ssp:AddLogToServicePublishRequestResult"/>
			<xsl:apply-templates select="/soap:Envelope/soap:Body/soap:Fault"/>
		</SSPAdapterResult>
	</xsl:template>
	<xsl:template match="/soap:Envelope/soap:Body/ssp:AddLogToServicePublishRequestResponse/ssp:AddLogToServicePublishRequestResult">
		<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