| Author |
Target namespace
|
Sam Ruben
Greenhorn
Joined: Feb 07, 2012
Posts: 9
|
|
|
whats the purpose using target namespace in a wsdl?
|
 |
Lance Lotlinc
Greenhorn
Joined: Apr 06, 2012
Posts: 17
|
|
|
A target namespace qualifies the children attributes so that you can refer to multiple children that have the same name but different contexts. For example, a child named 'ZipCode' in the 'com.yourcompany.inquiry' namespace might only need a single numeric five digit integer whereas a child named 'ZipCode' in 'gov.usps.www' namespace might need a character string of ten characters in length (zip+four).
|
 |
Sam Ruben
Greenhorn
Joined: Feb 07, 2012
Posts: 9
|
|
Hi Thank you. I just have a doubt. namespace is generally used to avoid conflicts in naming XML tags.
eg:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3schools.com"
xmlns="http://www.w3schools.com">
why does the targetNamespace is used here? what the value http://www.w3schools.com is referred to?
xmlns:xs="http://www.w3.org/2001/XMLSchema -- I have understood this point.
|
 |
Anurag Verma
Ranch Hand
Joined: Mar 30, 2012
Posts: 118
|
|
targetNamespace is similar as giving package name in java & namespaces in C++. By targetNamespace we specify that the xml is inside the mentioned namespace.
Did that answer or you needed something else?
|
 |
 |
|
|
subject: Target namespace
|
|
|