Skip to content Skip to sidebar Skip to footer

Get Wcf Rest Get Request In Android

When I call to my WCF service using andoroid volley library it throw TimeOut Exception. This is my code. What is the error of this code. RequestQueue queue = Volley.newRequestQueue

Solution 1:

I found the solution for this. I added some binding to applicationhost.config file in IIS server.

<sitename="myservice"id="5"><applicationpath="/"applicationPool="Clr4IntegratedAppPool"><virtualDirectorypath="/"physicalPath="E:\vs\myservice" /></application><bindings><bindingprotocol="http"bindingInformation="*:10963:127.0.0.1" /><bindingprotocol="http"bindingInformation="*:8085:127.0.0.1" /><bindingprotocol="http"bindingInformation="*:8085:192.168.42.200" /></bindings>

Then I installed iis proxy and change the port to proxy

npm install -g iisexpress-proxy
iisexpress-proxy 10963to8085

10963 is the port which application run and the 8085 is the proxy port

Final I changed my URL in android application

StringURL="http://192.168.42.200:8085/myservice.svc/test/2";

more information

Post a Comment for "Get Wcf Rest Get Request In Android"