wcf service -in-monodroid-application-not-working

Posted by Anant under Mobile Development on 10/17/2013 | Points: 10 | Views : 1246 | Status : [Member] | Replies : 2
I'm having difficulties with accessing a WCF service. My service is
running in the same solution as the MonoDroid App and is hosted by visual
studio. I configured it as BasicHttp. The reference adds ok but at runtime
when I call the one simple test method, I get ;

System.Net.WebException: Error: ConnectFailure (Connection refused).
I'm calling the service on http://localhost:51559. Could this be a

similar issue to cross domain web service querying with JQuery? Is the
request seen as coming from localhost (the emulator) as well?

Thanks to anyone who takes interest in this.




Responses

Posted by: Anant on: 10/22/2013 [Member] Starter | Points: 25

Up
0
Down
if i access simple wcf service it is work fine on using 10.0.2.2 instead localhost but when i put dB code for insertion on my sql server table in wcf service and invoking it on monodroid application is giving error of the request time out.details:-

{System.Net.WebException: The request timed out
at

System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <filename unknown>:0
at

System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke (System.String

method_name, System.Object[] parameters) [0x00000] in <filename unknown>:0 }

Please help me again

Anant, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Anant on: 10/24/2013 [Member] Starter | Points: 25

Up
0
Down
i found solution finally ,thanks to all

Anant, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response