|
Agreed on SOAP. Simple it Ain't.
On HTTP, you have to handle types (is is a date? Is it an integer? Is it a string?) on the server, and you'd have to know what it is, because 06116 is a zip code, a string, not an integer, so for every item of data, you'd have to send the type too, as in Val=06116&Type=String. But what if you're sending 3 values in a row? Which type applies to which value? or do you number them? as:
val1=06116&type1=string&val2=04&type2=integer&val3=Connecticut&type3=string
for:
ZipCode 06116
StateCode 04
StateName Connecticut
Then you end up with a parsing nightmare, with arrays, and how large are the arrays... So on and so forth.
Trust me, for structs, it would not be pretty.
|
If you need strong typing, put it in the body of the request message, not the resource identifier.
The resource identifier (URI) isn't (shouldn't be) different if the zipcode is identified as an integer .vs. text.