As a general rule, the URI scheme and serialization method can be chosen as follows. Your first instinct should be to use GET with application/x-www-form-urlencoded, unless your solution meets one of the good reasons not to use GET, mentioned earlier in the "When to Use Get" sidebar. For everything else, consider first using POST with application/xml, unless you need to be compatible with a "legacy" server that's expecting submissions from clients running HTML forms or similar applications. Table 8-1 summarizes.
|