Skip to content

Commit

Permalink
- jquery.soap: added async and headers to the options (from $.ajax api)
Browse files Browse the repository at this point in the history
- jquery.soap: warn on missing xml2json plugin instead of throwing an error
  • Loading branch information
Remy Blom committed Oct 30, 2013
1 parent 176c365 commit a61ba18
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jquery.soap.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ options {
}
return soapRequest.send({
url: config.url,
async: config.async,
headers: config.headers,
action: (!!config.SOAPAction) ? config.SOAPAction : config.method,
soap12: config.soap12,
beforeSend: config.request
Expand Down Expand Up @@ -270,6 +272,8 @@ options {
return $.ajax({
type: "POST",
url: options.url,
async: options.async,
headers: options.headers,
dataType: "xml",
processData: false,
data: this.toString(),
Expand Down Expand Up @@ -412,7 +416,7 @@ options {
if ($.xml2json) {
return $.xml2json(this.content);
}
throw new Error("Missing JQuery Plugin 'xml2json'");
warn("jQuery.soap: Missing JQuery Plugin 'xml2json'");
};
};

Expand Down

0 comments on commit a61ba18

Please sign in to comment.