XML constrains a Web service in the same ways a development platform or programming language constrains an application.
If I develop an application in C++, the coding of the program is where I manage data within the application with respect to data types and structures.