Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
michelabarsottini
Partner - Contributor III
Partner - Contributor III

tHMap move all namespaces declarations to root element

Hi all,

we are experiencing a similar problem to this topic (https://community.qlik.com/t5/Design-and-Development/tHMap-move-namespace-from-elements-to-root-stru...) but the solution proposed does not work.

This is the expected result:

<soap:Envelope xmlsn:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ser:getLinesOutputBody xmlns:cmn="http://www.example.com/schemas/common" xmlns:ser="http://www.example.com/services/getLines">
<status>
<cmn:code>200</cmn:code>
<cmn:subCode>200</cmn:subCode>
</status>
<content>
</content>
</ser:getLinesOutputBody>
</soap:Body>
</soap:Envelope>
 
The tHMap output, instead, is the following:
<soap:Envelope xmlsn:soap="http://schemas.xmlsoap.org/soap/envelope/">
	<soap:Body>
		<ser:getLinesOutputBody xmlns:ser="http://www.example.com/services/getLines">
			<status>
				<cmn:code xmlns:cmn="http://www.example.com/schemas/common">200</cmn:code>
				<cmn:subCode xmlns:cmn="http://www.example.com/schemas/common">200</cmn:subCode>
			</status>
			<content>
			</content>
		</ser:getLinesOutputBody>
	</soap:Body>
</soap:Envelope>
As you can see the cmn namespace is declared in each element.
We need to "move" the namespace at the root element level, you could do it with tXMLMap, but I cannot find an option available for tHMap.
 
Thanks in advance,
Michela
 
Labels (3)
0 Replies