R rpina Member Licensed User Longtime User Sep 26, 2013 #1 Hi all, I'm trying to consume a web service using HttpUtils2 My code is B4X: Job.PostString(PostUrl,"nome=prova&datachiamata=25/09/2013 17:45&durata=17:00&numero=3396859511&tipochiamata=1&idchiamata="& chk.Tag &"".Replace(" ","%20")) Job.GetRequest.Timeout = 60000 I use this to store calls details to a remote database. When JobDone routine is fired it gives me back an error of Error: libcore.io.ErrnoException: recvfrom failed: ECONNRESET (Connection reset by peer) Click to expand... As I test my c# webservice from browser it correctly responds with <stringxmlns="http://tempuri.org/">555</string> Click to expand... Any suggestion please? Kind regards Riccardo
Hi all, I'm trying to consume a web service using HttpUtils2 My code is B4X: Job.PostString(PostUrl,"nome=prova&datachiamata=25/09/2013 17:45&durata=17:00&numero=3396859511&tipochiamata=1&idchiamata="& chk.Tag &"".Replace(" ","%20")) Job.GetRequest.Timeout = 60000 I use this to store calls details to a remote database. When JobDone routine is fired it gives me back an error of Error: libcore.io.ErrnoException: recvfrom failed: ECONNRESET (Connection reset by peer) Click to expand... As I test my c# webservice from browser it correctly responds with <stringxmlns="http://tempuri.org/">555</string> Click to expand... Any suggestion please? Kind regards Riccardo
Erel B4X founder Staff member Licensed User Longtime User Sep 26, 2013 #2 1. Make sure that the request is correct. 2. Try to add a user-agent header. Upvote 0
R rpina Member Licensed User Longtime User Sep 27, 2013 #3 Erel said: 1. Make sure that the request is correct. 2. Try to add a user-agent header. Click to expand... Hi Erel, I've made a test, making my webservice return nothing and my Job says that it is successfull, as my log says JobName = Job, Success = false Click to expand... When I try to get a return string from web service I see that it is correctly reached from my phone, as I see data stored in my database, but when it givev back return string it gives me error shown in first post. Upvote 0
Erel said: 1. Make sure that the request is correct. 2. Try to add a user-agent header. Click to expand... Hi Erel, I've made a test, making my webservice return nothing and my Job says that it is successfull, as my log says JobName = Job, Success = false Click to expand... When I try to get a return string from web service I see that it is correctly reached from my phone, as I see data stored in my database, but when it givev back return string it gives me error shown in first post.
Erel B4X founder Staff member Licensed User Longtime User Sep 28, 2013 #4 Success is False. This means that there was an error. You should check the logs. Upvote 0