Skip to main content

Posts

Showing posts from March, 2018

Remove Namespace from XML Payload in Oracle SOA

Some times we are in need to remove namespace from XML payload in oracle soa, SOA framework does not provide any direct XML manupulation methods to do it, But with the help of XSLT we can achieve it. XSLT Name: RemoveNamespace.xsl Step to remove name space: Drag & drop a XSLT component. Map BPEL/ESB variable in INPUT & OUTPUT. No mapping required. Go to source of XSLT that is created. Pest the below code and remove other templates. You can't use other templates if you are removing namespace. XSLT Code: <xsl:template match="*">     <xsl:element name="{local-name()}">       <xsl:apply-templates select="@* | node()"/>     </xsl:element>   </xsl:template>   <xsl:template match="@* | text()">     <xsl:copy/>   </xsl:template>