![]() |
PhoneGap/Android - requestXML is null
Hi!
I just developed a veeeeery simple application that uses SOAP. The js soap librery is here: http://www.codeproject.com/Articles/...pt-SOAP-Client Now, I had to do some small changes to the implementation cause I think it was a little broken. Anyway, the thing is that the wsdl file I'm using is retrieved from the web server but then responseXML is null (even though I set up apache to return that the file type is text/xml (and I'm checking that's the content-type by checking with wget). Code:
---response begin---So.... what's going on? Why is it not parsed as an xml file? Or how can I do the debuggin for it? Thanks in advance. |
I was just wondering that the problem could be not in phonegap but in lower layers, right? I mean, I just looked at the phonegap src for android and there's no ajax code wihich leads me to believe that phonegap is using android APIs for ajax processing.... which leads me to this questions:
How can I see what android is doing to do the ajax processing? are there ways to do this kind of debugging somehow? Thanks in advance. |
I've been able to move on (at least a little bit) by checking if responseXML is null. If it is, I could parse again responseText using DOMParser.parseFromString(responseText, "text/xml");
I'm facing other problems now with the result of the parsing process. Let's see how far I can get. |
I think it's solved. The thing is that if requestXML is null, yoy can still ask a DOMParser to do the parsing for you by hand, liek this:
Code:
var parser = new DOMParser(); |
| All times are GMT -5. The time now is 02:29 AM. |