Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SOAP/REST Webservices XML case sensitivity

I just got a doubt whether the XMLs we are using for our SOAP/REST-based web services are case-sensitive or or not? How does it work exactly?

Tell me both for the default soap envelope as well as for payload XMLs.

like image 204
Rajesh Kumar J Avatar asked Nov 25 '11 10:11

Rajesh Kumar J


2 Answers

SOAP is a specific instance of an XML language.

As such, it adheres to all the rules of XML.

One of these rules is that XML is case-sensitive.

Therefore SOAP is case sensitive as well.

Same is true for REST

like image 174
Cratylus Avatar answered Sep 23 '22 16:09

Cratylus


XML is always case-sensitive; it's defined that way by the W3C (see the definition for “match” where it says that no case folding is performed). SOAP uses XML for both envelope and payload, so those are by definition case-sensitive.

(Note that this is different from HTML, which is case-insensitive for element and attribute names. That's because HTML is built on top of SGML, itself a much-more-complex predecessor to XML.)

like image 28
Donal Fellows Avatar answered Sep 20 '22 16:09

Donal Fellows