Prev | Current Page 280 | Next

Rich Cannings, Himanshu Dwivedi, Zane Lackey, and Alex Stamos

"Hacking Exposed Web 2.0: Web 2.0 Security Secrets and Solutions"

An example of a client using JavaScript arrays to
call a method on the server is shown next. In this example, the client is calling method
exampleMethod with the arguments arg1 and arg2.
var rpc = ["exampleMethod", "arg1", "arg2"];
Here??™s an example of a client using JSON to call a method on the server. In this
example, the client is calling method exampleMethod with the arguments arg1 and
arg2.
"exampleMethod" : [ "arg1", "arg2" ]
SOAP
In rare cases, SOAP may be used as an upstream protocol in an AJAX application and is
supported by AJAX frameworks such as AJAXEngine. This is usually seen only in
intranet environments where the bandwidth needed for pushing a large JavaScript file
that implements a SOAP stack is not an issue. For example, this may be used to build an
AJAX GUI in front of an existing web services. Here??™s an example of a client using SOAP
to call a method on the server. In this example, the client is calling the method
exampleMethod with the argument 42.

xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.


Pages:
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
noclegi świnoujście usługi remontowe impregnacja posadzek kamiennych Pompy zatapialne Automaty samosprzedające