It should work fine using localhost for the service address. Just use
the real IP address of your machine when calling the service from Android.
Are you calling it from the emulator or from a cell phone? How are you
connected to your PC from your Android app? I just want to be sure I am
understanding what you are doing. If I understand correctly, your WCF
service is on your PC and you can access it using your browser (also on
your PC) using localhost. When you call the WCF service from Android you
are not finding it, or it's not returning. If that's the case then from
a Windows command line prompt do "ipconfig /all", find your machines IP
address (in my case it's 192.168.1.103 and use that instead of localhost
when you are calling the service from your Android app.
If I'm misunderstanding, please clarify :).
Good luck.
On 03/06/2010 8:33 AM, Lamia Hannoun wrote:
I tried also to change the adress of my endpoints :s but it didn't
work :(. I want to know if i changed the adresse of my service
(different that loacalhost) it will work perfectly isn't it, this pb
is only caused by this local address ??? Am i right? Has anyone test
this before? cuz till now i'm developping don't have a server yet
to use its address!!
Thx
2010/6/3 Lamia Hannoun <[email protected]
<mailto:[email protected]>>
U mean using it instead of using 10.0.2.2 or in the adress
endpoint of the wcf, i did the first option it didn't work :s :s
2010/6/3 Brad Gies <[email protected] <mailto:[email protected]>>
Try using the real IP address of your machine. That works (for
me at least).
On 03/06/2010 5:50 AM, Lamia Hannoun wrote:
Hello!
I hosted my service WCF (.net) using a windows service, i
can access to the service from any browser but when i
tried to call it from android it doesn't respond. it works
fine before the hosting procedure (i used host client by
default on Visual Studio).
The url that i try to attempt is http://10.0.2.2/......
from android emulator, and installed my webservice in the
same local machine(endpoints address http://localhost
<http://localhost/> <http://localhost/>.....).
Thx for any help !!
--
You received this message because you are subscribed to
the Google
Groups "Android Developers" group.
To post to this group, send email to
[email protected]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:android-developers%[email protected]>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Sincerely,
Brad Gies
-----------------------------------------------------------------------
Bistro Bot - Bistro Blurb
http://www.bgies.com <http://www.bgies.com/>
http://www.bistroblurb.com <http://www.bistroblurb.com/>
http://www.bistrobot.com <http://www.bistrobot.com/>
-----------------------------------------------------------------------
Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has -
Margaret Mead
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to
[email protected]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:android-developers%[email protected]>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Sincerely,
Brad Gies
-----------------------------------------------------------------------
Bistro Bot - Bistro Blurb
http://www.bgies.com
http://www.bistroblurb.com
http://www.bistrobot.com
-----------------------------------------------------------------------
Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en