Skip to content

Instantly share code, notes, and snippets.

@qetr1ck-op
Created November 2, 2015 18:54
Show Gist options
  • Save qetr1ck-op/e0efd1cb0d63ba2b1350 to your computer and use it in GitHub Desktop.
Save qetr1ck-op/e0efd1cb0d63ba2b1350 to your computer and use it in GitHub Desktop.
$.soap({
url: 'http://my.server.com/soapservices/',
method: 'helloWorld',
data: {
name: 'Remy Blom',
msg: 'Hi!'
},
success: function (soapResponse) {
// do stuff with soapResponse
// if you want to have the response as JSON use soapResponse.toJSON();
// or soapResponse.toString() to get XML string
// or soapResponse.toXML() to get XML DOM
},
error: function (SOAPResponse) {
// show error
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment