doedje / jquery.soap

This script uses $.ajax to send a SOAP:Envelope. It can take XML DOM, XML string or JSON as input and the response can be returned as either XML DOM, XML string or JSON too.
352 stars 148 forks source link

is there a reason of using `jquery.xml2json`? #83

Closed wood1986 closed 9 years ago

wood1986 commented 9 years ago

Is there a reason of using jquery.xml2json? jquery.xml2json blocks from using latest jquery because of "dependencies" : { "jquery": "1.11" } in xtreemrage/jquery.xml2json/bower.json

Would mind changing to use sparkbuzz/jQuery-xml2json?

doedje commented 9 years ago

sorry for late reply, summer holidayzzzzzzz..... But I wil look into that...

doedje commented 9 years ago

The jquery.xml2json plugin is only used for the SOAPResponse.toJSON() function. Changing it to sparkbuzz would definitely break other peoples code. But the fyneworks/xtreemrage version is quite crappy. It does fine with simple soap responses but fails massively at other XMLs I came across...

I think the best thing would be to drop the dependency altogether and add some additional info regarding the use of SOAPResponse in combination with a 3rd party jquery plugin like the sparkbuzz version in the README.......