You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now when I tried using .toJSON() xml2json returns an error at line 109: Uncaught TypeError: Cannot read property 'length' of undefined
I believe it is because of line 365 in your plugin which returns: return $.xml2json(this.content);
The structure of the data sent is: #document.<soap:envelope>...
I fixed this by replacing line 365 by: return $.xml2json(this.content.documentElement.outerHTML);
Is it something wrong with my SOAP sent?
The text was updated successfully, but these errors were encountered:
I am not quite sure if there is something wrong with your SOAP being sent. I have tried toJSON with the original code and with your replacements and both seem to be working fine... I don't know, maybe there is a difference in which xml2json plugin you are using.... The one I use is:
Hi, great plugin. really loved it.
Now when I tried using
.toJSON()
xml2json returns an error at line 109:Uncaught TypeError: Cannot read property 'length' of undefined
I believe it is because of line 365 in your plugin which returns:
return $.xml2json(this.content);
The structure of the data sent is:
#document.<soap:envelope>...
I fixed this by replacing line 365 by:
return $.xml2json(this.content.documentElement.outerHTML);
Is it something wrong with my SOAP sent?
The text was updated successfully, but these errors were encountered: