[Logo]
Forums Register Login
why targetNamespace?
if i am saying
<definitions name="StockQuote"
targetNamespace="http://exle.com/stockquote.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/">
in my xml schema .What is the significance of the targetnamespace?Does targetNameSpace state the location of the file which i am authoring so that when people use the elements that i have defined they specify http://exle.com/stockquote.wsdl for their xmlns?
 
Originally posted by william kane:
if i am saying
<definitions name="StockQuote"
targetNamespace="http://exle.com/stockquote.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/">
in my xml schema .What is the significance of the targetnamespace?Does targetNameSpace state the location of the file which i am authoring so that when people use the elements that i have defined they specify http://exle.com/stockquote.wsdl for their xmlns?

No!.
<definitions name="StockQuote"
targetNamespace="http://exle.com/stockquote.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/">
<message name="checkUserNameRequest">
<part name="parameters" element="UserName" />
<message>
..
</definitions>

The line xmlns="http://schemas.xmlsoap.org/wsdl/" specifies that the elements and datatypes used in the schema comes from the namespace http://schemas.xmlsoap.org/wsdl/
whereas the line targetNamespace="http://exle.com/stockquote.wsdl"
specifies that the elements defined by this schema like checkUserNameRequest,UserName comes from namespace http://exle.com/stockquote.wsdl
Rgds
Balaji
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Nov 17, 2017 18:08:56.