Consume WebService asmx with Android

1

I'm trying to get SOAP provided from a local asmx webservice in my android emulator. On my PC the result is the following:

Intheemulatorhowever,Itriedtoopenitinyourbrowserintwoways:

UsingthefollowingURL:

  

10.0.3.2:49498/WebServiceApp.asmx/ObtemListProducts

Ittakesawhiletoloadandthefollowingappears:

  

"Webpage not available   The webpage at link might be temporarily down or it may have moved permanently to a new web addres "

Or using the following URL:

  

10.0.2.2:49498/WebServiceApp.asmx/ObtemListProducts

The time already appears

  

"Bad Request - Invalid Hostname   HTTP Error 400. The request hostname is invalid ".

I think that if it does not work 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 correct and what is wrong with the url call?

Thank you.

    
asked by anonymous 01.05.2015 / 21:22

0 answers