cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Problem - Namespace

Former Member
0 Kudos

Hi,

following situation:

This is the result of my mapping:

<?xml version="1.0" encoding="iso-8859-1" ?>

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://b2bqs.mareon.com/immosoap/" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo">

<soap-env:Header>

<m:UNR>399630000</m:UNR>

</soap-env:Header>

<soap-env:Body>

<S2Mis24_struct_00 xmlns="http://b2bqs.mareon.com/immosoap/">

<is24_transfer_guid>1B5D7C469D349149E1000000AC125324</is24_transfer_guid>

<is24_package_number>1</is24_package_number>

<is24_struct_bukrs_00_item>

<MANDT xmlns="">203</MANDT>

<BUKRS xmlns="">1000</BUKRS>

<BUTXT xmlns="">Test</BUTXT>

<PSTLZ xmlns="">55130</PSTLZ>

<ORT01 xmlns="">Musterort</ORT01>

<ORT02 xmlns="" />

<PSTL2 xmlns="" />

<PFACH xmlns="" />

<STRAS xmlns="">Musterstrasse 79</STRAS>

<STRS2 xmlns="" />

<HAUSN xmlns="" />

<STOCK xmlns="" />

<LAND1 xmlns="">DE</LAND1>

</is24_struct_bukrs_00_item>

<is24_struct_swenr_00_item>

<MANDT xmlns="">203</MANDT>

<BUKRS xmlns="">1000</BUKRS>

<SWENR xmlns="">00008803</SWENR>

<DESCRIPTION xmlns="">RUE</DESCRIPTION>

<CITY1 xmlns="" />

<CITY2 xmlns="" />

<POST_CODE1 xmlns="" />

<STREET xmlns="" />

<HOUSE_NUM1 xmlns="" />

<HOUSE_NUM2 xmlns="" />

<STR_SUPPL1 xmlns="" />

<STR_SUPPL2 xmlns="" />

<STR_SUPPL3 xmlns="" />

<LOCATION xmlns="" />

<BUILDING xmlns="" />

<FLOOR xmlns="" />

<ROOMNUMBER xmlns="" />

<COUNTRY xmlns="" />

<REGION xmlns="" />

</is24_struct_swenr_00_item>

</S2Mis24_struct_00>

</soap-env:Body>

</soap-env:Envelope>

Error in my opinion is <b>xmlns=""</b>

I use this mapping:

<?xml version="1.0" encoding="ISO-8859-1"?>

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

<xsl:output encoding="UTF-8"/>

<xsl:template match="/">

<TYP_REQUEST_10>

<ID_ID>

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

</ID_ID>

<ID_HOST>

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

</ID_HOST>

<ID_SYSID>

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

</ID_SYSID>

<ID_MANDT>

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

</ID_MANDT>

<ID_SERV_KOMP>

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

</ID_SERV_KOMP>

<SERIALIZED>

<xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[]]></xsl:text>

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

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

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

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

<xsl:text disable-output-escaping="yes"><![CDATA[]]]]></xsl:text>

<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>

</SERIALIZED>

<ID_UNR/>

</TYP_REQUEST_10>

</xsl:template>

</xsl:stylesheet>

Anybody who knows whats going wrong?

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Lars,

If you want to remove the namespace prefix then go through these weblogs:

/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean

/people/sameer.shadab/blog/2005/12/05/how-to-remove-namespaces-in-mapping--xi

Regards,

---Satish

Former Member
0 Kudos

Hi Lars,

Can you provide some more info, like the source xml and the expected target xml?

I don't see directly how the XSLT that you provide could generate the SOAP message that we see ... .

Kind regards

Joris

Former Member
0 Kudos

Hi,

I expect something like this, not the original version cause of the error.