1
I am trying to get SOAP provided from an asmx local webservice on my android emulator. On my PC the result is as follows:
In the emulator however, I tried to open in your browser in two ways:
Using the following URL:
10.0.3.2:49498/WebServiceApp.asmx/ObtemListaProdutos
It takes a while to load and the following appears:
"Webpage not available The webpage at http://10.0.3.2:49498/Webserviceapp.asmx/Obtemlists products Might be temporalily down or it may have Moved permanently to a new web addres"
Or using the following URL:
10.0.2.2:49498/WebServiceApp.asmx/ObtemListaProdutos
Just in time
"Bad Request - Invalid Hostname HTTP Error 400. The request hostname is invalid".
I believe that if it does not work even in the emulator browser, even less in the application, correct?
Which of the two addresses (10.0.2.2 or 10.0.3.2) is right and what is wrong in the so-called url?
Thank you.
The example you showed using the PC browser uses localhost. Try using the IP placed in the emulator browser and see the result. You are probably having problems configuring IIS.
– EduardoFernandes