Type = "xs: string" OR type = "xsd: string" in the SOAP protocol

I am new to the world of web services, and I have seen in various tutorials that some of them are used xs:stringfor a data type and some are used xsd:stringfor messages at w3schools.com. tut looks like this:

<message name="getTermResponse">
  <part name="value" type="xs:string"/>
</message>

And, for example, in Apress Beginning PHP and MySQL there is the following code:

<message name="getTermResponse">
  <part name="value" type="xsd:string"/>
</message>

What is the difference between the two? which one to use when?

+5
source share
1 answer

xs:stringis an example of a qualified name in XML. The part xsrefers to the namespace declaration of the same element or parent element. Most likely there is an announcement xmlns:xs=http://www.w3.org/2001/XMLSchema.

xsd:string - , , xmlns:xsd=http://www.w3.org/2001/XMLSchema. foo:string , xmlns:foo=http://www.w3.org/2001/XMLSchema.

, . . , , .

+8

All Articles