wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Namespace based element identification Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Namespace based element identification" Watch "Namespace based element identification" New topic
Author

Namespace based element identification

Kingsly Theodar
Greenhorn

Joined: Feb 21, 2004
Posts: 19
In the below XML, which one is tns:MyMessage? Is it the blue one or green one? The red ones refers the blue one or green one? I think it refers to the green one always, since that is within the XSD:schema element. If that is the case, then how do we refer to the Blue MyMessage from the Red colored references? Please clarify.

<pre>
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.example.org/WhatSoEver/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="WhatSoEver"
targetNamespace="http://www.example.org/WhatSoEver/">
<wsdl:types>
<xsd:schema xmlns="urn:xmlns:mynamespace"
targetNamespace="http://www.example.org/WhatSoEver/">

<xsd:import namespace="urn:xmlns:mynamespace"
schemaLocation="MyDetail.xsd">
</xsd:import>

<xsd:element name="MyMessage" type="MyMessageType" />

</xsd:schema>



</wsdl:types>
<wsdl:message name="MyMessage">
<wsdl:part element="tns:MyMessage" name="parameters" />
</wsdl:message>
<wsdl:portType name="WhatSoEver">
<wsdl:operation name="MyMessage">
<wsdl:input message="tns:MyMessage" />

</wsdl:operation>
</wsdl:portType>


</wsdl:definitions>
</pre>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Namespace based element identification