You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Ex...@nokia.com on 2001/03/09 08:55:42 UTC

redeclaring xmlns:xsi in soap message

Hello,

My question relates to the declaration of
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" in multiple points in
a SOAP XML document.  Consider one of our SOAP messages below.
Our SOAP engine is an XML processor.  In order to support interacting with
Apache 2.0 clients we apply XSL via Oracle XSLT to transform the XML.
Considering the
declaration of the <attributelistns:AttributeList> element we have noticed
is that the
resultant XML redefines the xsi namespace.  This appears to be benign and
Apache 2.0
processes the request fine but is it storing up problems for the future ?

Thanks

Regards,

Shaun O'Hagan

<SOAP-ENV:Envelope
          xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
          xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" <!---
declared -->
          xmlns:xsd="http://www.w3.org/1999/XMLSchema"
          xmlns:ais="urn:application-interface-service#version-1.0"
          SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>
	<SOAP-ENV:Header>
		<t:UserAuthorisationToken
xmlns:t="urn:application-interface-token">?</t:UserAuthorisationToken>
	</SOAP-ENV:Header>
	<SOAP-ENV:Body>
		<m:GetDataObjectResponse
			xmlns:m="urn:application-interface-service">
		<ApplicationTransactionIdentity
	
xsi:type="xsd:string">MAPINFO2000060686400998877665544332212</ApplicationTra
			nsactionIdentity>
		<DataSpace xsi:type="xsd:string">Subscriber</DataSpace>
		<DataObject xsi:type="xsd:string">Name</DataObject>
		<attriblistns:AttributeList 
	
	
xmlns:attriblistns="urn:application-interface-service#AttributeListSpace"
	
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" <!----- redeclared
--->
			xsi:type="attriblistns:AttributeList"
		>		
			<Title xsi:type="xsd:string">Mr</Title>
			<FirstName xsi:type="xsd:string">Shaun</FirstName>
			<MiddleName xsi:type="xsd:string">?</MiddleName>
			<LastName xsi:type="xsd:string">OHagan</LastName>

		</attriblistns:AttributeList>
		</m:GetDataObjectResponse>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>