on 06-11-2007 10:48 AM
Hi!
I am facing the following problem:
A backend application sends out XML messages that all have a namespace tag in the element names:
...
<ns1:StandardBusinessDocument xmlns:ns1="http://www.unece.org/cefact/namespaces/SBDH" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:eanucc="urn:ean.ucc:2" xmlns:deliver="urn:ean.ucc:deliver:2" xsi:schemaLocation="http://www.unece.org/cefact/namespaces/SBDH ../Schemas/sbdh/StandardBusinessDocumentHeader.xsd urn:ean.ucc:2 ../Schemas/ReceivingAdviceProxy.xsd">
<ns1:StandardBusinessDocumentHeader>
<ns1:HeaderVersion>2.2</ns1:HeaderVersion>
<ns1:Sender>
<ns1:Identifier Authority="EAN.UCC">1234567890123</ns1:Identifier>
</ns1:Sender>
...
Problem is that the backend expects the reply from XI to look the same (ns0: or ns1: in front of every element name). But when I import the xsd into XI, it removes these tags and the message then looks completely different to the backend:
<ns0:StandardBusinessDocument xmlns:ns0="urn:ean.ucc:2" ns1="http://www.unece.org/cefact/namespaces/SBDH" eanucc="urn:ean.ucc:2" deliver="urn:ean.ucc:deliver:2" schemaLocation="http://www.unece.org/cefact/namespaces/SBDH ../Schemas/sbdh/StandardBusinessDocumentHeader.xsd urn:ean.ucc:2 ../Schemas/ReceivingAdviceProxy.xsd" xsi="http://www.w3.org/2001/XMLSchema-instance"><StandardBusinessDocumentHeader><HeaderVersion>2.2</HeaderVersion><Sender><Identifier Authority="EAN.UCC">1234567890123</Identifier></Sender>
Any help on how to make XI keep the namespace tags is greatly appreciated!
Cheers!
Stefan
Hi Stefan,
you achiev that with a XSLT mapping for the response. The interfaces will not be checked during runtime, if you dont use BPM or Message Mapping.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
plz have a look to following german sides:
Informationen zur Extensible Markup Language
<a href="http://www.xsl-xml.de/xslt.html">Einführung in XSL-Transformation (XSLT)</a>
You have to do a construction like
...
<ns1:Sender>
<ns1:Identifier Authority="EAN.UCC">
<xsl:value-of select="//X-Path expression on my source field"></xsl:value-of></ns1:Identifier>
</ns1:Sender>
...
Regards,
Udo
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.