cancel
Showing results for 
Search instead for 
Did you mean: 

Anonymizer bean is used, but the namespaces are not changed.

former_member191435
Contributor
0 Kudos

Hi All,

I have attached the Actual SOAP.xml(Expected Soap file) and the PresentQSOAP.xml(my output file).

The namespaces are different, i tried it using anonymizer bean but i am not getting the correct namepaces

Please let me know how to do it, any help will be appreciated.

Regards,

Sreenivas

Accepted Solutions (0)

Answers (4)

Answers (4)

iaki_vila
Active Contributor
0 Kudos

H Seenvu,

You can mark the option Do not use SOAP envelope in the communication channel and later to remove all the namespaces in the operation mapping with this xsl:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" indent="no"/>

<xsl:template match="/|comment()|processing-instruction()">

    <xsl:copy>

      <xsl:apply-templates/>

    </xsl:copy>

</xsl:template>

<xsl:template match="*">

    <xsl:element name="{local-name()}">

      <xsl:apply-templates select="@*|node()"/>

    </xsl:element>

</xsl:template>

<xsl:template match="@*">

    <xsl:attribute name="{local-name()}">

      <xsl:value-of select="."/>

    </xsl:attribute>

</xsl:template>

</xsl:stylesheet>

Regards.

nageshwar_reddy
Contributor
0 Kudos

Seenu,

Please note the following points:

former_member184789
Active Contributor
0 Kudos

Hi,

Just wanted to ask, are you using a SOAP adapter on sender side. If yes, anonymizer bean will not work as Sender SOAP adapter does not support any adapter modules. I have an XSLT mapping as below, which I tried to modified as per your requirement but you may need to refine it further:

<?xml version='1.0' encoding='utf-8'?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/*">

<ns0:QSOAP_Final xmlns:ns0="http://www.quadrem.com/soap/">

<xsl:copy-of select="//HEADER" />

<xsl:copy-of select="//BODY" />

</ns0:QSOAP_Final>

</xsl:template>

</xsl:stylesheet>

iaki_vila
Active Contributor
0 Kudos

Hi seenu,

Are you putting two singles quotes in acceptNamespaces? (http://scn.sap.com/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encodin...)

Regards,

former_member191435
Contributor
0 Kudos

HI Inaki,

Yes , i have used two single quotes. But still i am not getting the namespace in the soap header

Former Member
0 Kudos

Hi seenu,

With anonymizer i can change the prefix of the namespace of the body but

I can not change the prefix of the namespace of the header.

the same happened to you ?


Regards

former_member191435
Contributor
0 Kudos

I have used xslt mapping in place of bean....