Namespaces were added by default, abc namespace was in SorgulaResponse and had no name. A name was given and all objects under it were started with it.
You can extract header and body content in SOAP message using XSLT. You can perform namespace definitions and content transformation with Composite Registry Service example.
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:abc="http://kps.nvi.gov.tr/2011/01/01"
xmlns:s="http://www.w3.org/2003/05/soap-envelope"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns:a="http://www.w3.org/2005/08/addressing"
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:b="http://schemas.datacontract.org/2004/07/Common.Types.Containers.Services">
<xsl:template match="/">
<Envelope><Header/><Body>
<xsl:apply-templates select="s:Envelope/s:Body/abc:SorgulaResponse/abc:SorgulaResult/abc:SorguSonucu/abc:BilesikKutukBilgileri/abc:TCVatandasiKisiKutukleri/*"/>
</Body></Envelope>
</xsl:template>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Was this page helpful?