Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Namespace based element identification

 
Kingsly Theodar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic