Created
December 10, 2009 09:12
-
-
Save code/253227 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var soap_raw_data = escape('<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><TestDB xmlns="http://itstechservices.com/" /></soap:Body></soap:Envelope>'); | |
new Ajax.Request('http://ws.itstechservices.com/TruckServices.asmx', | |
{ | |
method:'post', | |
postData: soap_raw_data, | |
requestHeaders: {SOAPAction: "http://itstechservices.com/TestDB", "Content-Type": "text/xml; charset=utf-8"}, | |
onSuccess: function(transport){ | |
var response = transport.responseText || "no response text"; | |
//alert("Success! \n\n" + response); | |
}, | |
onFailure: function(){ alert('Something went wrong...') } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment