diff --git a/jquery.soap/jquery.soap-tests.ts b/jquery.soap/jquery.soap-tests.ts index 3390c2774..e40379325 100644 --- a/jquery.soap/jquery.soap-tests.ts +++ b/jquery.soap/jquery.soap-tests.ts @@ -9,13 +9,13 @@ $.soap({ msg: 'Hi!' }, - success: function (soapResponse) { + 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) { + error: function(SOAPResponse) { // show error } }); @@ -77,7 +77,7 @@ $.soap({ }) $.soap({ - + }).done(function(data, textStatus, jqXHR) { // do stuff on success here... }).fail(function(jqXHR, textStatus, errorThrown) { @@ -88,7 +88,7 @@ $.soap({ url: 'http://my.server.com/soapservices/', namespaceQualifier: 'myns', namespaceURL: 'urn://service.my.server.com', - error: function (soapResponse) { + error: function(soapResponse) { // show error } }); @@ -99,7 +99,7 @@ $.soap({ name: 'Remy Blom', msg: 'Hi!' }, - success: function (soapResponse) { + success: function(soapResponse) { // do stuff with soapResponse } }); @@ -107,7 +107,7 @@ $.soap({ $.soap({ method: 'doSomethingElse', data: {}, - success: function (soapResponse) { + success: function(soapResponse) { // do stuff with soapResponse } }); @@ -119,10 +119,10 @@ $.soap({ name: 'Remy Blom', msg: 'Hi!' }, - success: function (soapResponse) { + success: function(soapResponse) { // do stuff with soapResponse }, - error: function (soapResponse) { + error: function(soapResponse) { alert('that other server might be down...') } }); @@ -174,10 +174,10 @@ $.soap({ var xml = ['', '', - '', - '', + '', + '', '', - '']; + '']; $.soap({ data: xml.join('') @@ -260,7 +260,7 @@ $.soap({ $.soap({ SOAPHeader: { - test: [1,2,3] + test: [1, 2, 3] } }) diff --git a/jquery.soap/jquery.soap.d.ts b/jquery.soap/jquery.soap.d.ts index abd65e783..7b7eeedbb 100644 --- a/jquery.soap/jquery.soap.d.ts +++ b/jquery.soap/jquery.soap.d.ts @@ -56,7 +56,7 @@ declare module JQuerySOAP { beforeSend?: (SOAPEnvelope: SOAPEnvelope) => void; context?: any; data?: Object; - envAttributes?: Object; + envAttributes?: any; elementName?: string; enableLogging?: boolean; error?: (SOAPResponse: SOAPResponse) => void;