I’m new to web services world, and I’ve seen in different tutorials that some of them use xs:string for data type and some use xsd:string for messages in w3schools.com tut is as below:
<message name="getTermResponse">
<part name="value" type="xs:string"/>
</message>
And for example in Apress Beginning PHP and MySQL is as the following code:
<message name="getTermResponse">
<part name="value" type="xsd:string"/>
</message>
What is the differences between them? which one to use when?
xs:stringis an example of a qualified name in XML. Thexspart refers to a namespace declaration on the same element or a parent element. Most likely, there’s anxmlns:xs=http://www.w3.org/2001/XMLSchemadeclaration.xsd:stringis exactly the same thing, assuming that the declaration isxmlns:xsd=http://www.w3.org/2001/XMLSchema.foo:stringwould also be the same, if the declaration werexmlns:foo=http://www.w3.org/2001/XMLSchema.In other words, the prefix does not matter. It is an alias for the namespace. If the namespaces are the same, and the local names are the same, then the two qualified names are the same.