Sample of making a SOAP call from Javascript to any service
Enter a Joke ID (any integer) and this page will fetch a joke via SOAP. Enter a non-integer and you'll get a chunk of a SOAP error as the result.This example uses HTTPRequest (either Microsofts XMLHTTP or Mozillas HTTPRequest object) to POST a SOAP envelope and extract the server response. The library punaXML.js provides a common interface for handling XML objects.
This may only work if run from the domain puna.net.nz, otherwise protections against, or permissions for, cross domain scripting might block it.