w3.org/1999/XMLSchema">
152 Hacking Exposed Web 2.0
xmlns:ns1="urn:ExampleSoapServices"
SOAP-ENV encodingStyle="http://schemas.xmlsoap.org/soap/
encoding/">
42
XML
Usage of XML as an upstream protocol in AJAX applications has often been supplanted
in AJAX applications. Its replacement has largely been due to the fact that, like usage of
XML as a downstream protocol, XML is often too verbose. Of the cases where it is still
seen, it is often used in front of a REST web service. Following is an example of a client
using XML to call a method on the server. In this example, the client is calling the method
exampleMethod with the argument 42.
42
Custom Serialization
Similar to custom downstream serialization, a number of AJAX toolkits provide their
own custom upstream serialization. Like their downstream counterparts, these formats
vary widely from toolkit to toolkit. The following example shows a client using the
Google Web Toolkit (GWT) custom serialization to call a method on the server.
Pages:
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293