1 person found this helpful
here is an idea. on your webservice you can modify a bit and put a function that writes the incoming parameters to a text file and also the return values. Though i know this sounds like a lot of work you can atleast see if the services is actually getting called and if it is; then is it actually returning something to the caller.
Thanks for the reply.
I tried your suggestion and it seems the service is not even being called. I made sure I've set the right permissions on the android app so I'm not sure what's going on.
Again - locally, from the same wi fi connection the service works perfect.
Which tools can I use to monitor if the request even goes out from my Android?
this is a difficult one to debug... do you have a crossdomail.xml on the server? and are you capturing the webservice error anywhere? I dont know of any tools specifically that you can use to monitor from within android. I would take a slighly different approach though. I would try to write the variables being send again from your flex app and then remove any error capturing and see what the error is. you should be getting an error back. I understand the locally it works but it may have something to do with the cross domain xml.
Sorry for a possibly very stupid answer... but I don't have a crossdomain file, is that a must? where do I store it and how do I access it?
Oh. well that would explain alot of it. its not a stupid question we are all learning. You have to put a crossdomain xml in server on the root directory. there are alot of different ways to implement it.
this should point you on the right direction.
here is a very basic format basically allowing anyone to call my service.
<?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <allow-access-from domain="*" /> </cross-domain-policy>
Thanks, appreciate your patience.
I've uploaded a crossdomain.xml file (the allow all version you gave) to the root directory, so my service is on http://myservicename.cloudapp.net/service.asmx?wsdl and the crossdomain file is available at http://myservicename.cloudapp.net/crossdomain.xml and it still doesn't work... any idea?
umm sorry mate the only other thing i could think off is take your entire project and test it on my own... And i dont know if youll be up for that... I would have to try to call the service myself. are you sure that the app is even making the call? you sure you are you using a fault function to take care of errors? can you take all error handling off? i mean what happens when the call happens? you should get an error back? 403 error or something?...
Project Export Build to your Device..
If your developling locally you must do this in order to get remote calls to work
That should fix your issue
Thanks! for some reason it didn't work the first time around, now with exporting the apk is works great!
Still wish there would be an easier way to debug web services on the phone, hope Adobe will address it.