doedje/jquery.soap — pull request #67 by ShaunMaher (2014-12-05 04:15:02+00:00)
Title: Some modifications you might be interested in

Hi Remy.

Not sure if you have any interest in integrating some modifications I have made to your extremely useful jquery.soap code but I thought I'd provide them anyway in case you or others might find them useful.

I have added a "context" object that, when passed as part of the of a request it is passed as an argument on the callback function. This makes keeping track of which response relates to which response much simpler when you are doing multiple in parallel.

I also added and additional supported input object type on the SOAPTool.processData function to support simple arrays. The resulting XML object is formatted to be compatible with very picky SOAP::Lite implementations, and includes the ability to pass arrays. This might address a specific case than the more general purpose nature of the rest of the code but it took hours to work out how SOAP::Lite wanted arrays passed to it and I'd hate for one more person to have to work it out. :-)

Finally, I made a very minor change to SOAPObject.toString to handle objects of type "number" which only seems to happen in Node.js, not a browser. Anyway, the changes makes the code portable to Node.js without issue.

Thanks for your time and your wonderful work. My little project would have died early on if it wasn't for jquery.soap.

Cheers.
Shaun.

P.S. This is my first Github Pull Request. I hope it does what I think it does.