Groups | Blog | Home
all groups > dotnet compact framework > may 2006 >

dotnet compact framework : Dynamic web service reference in mobile application


GOGA
5/21/2006 1:31:37 AM
Hi all,
i'm developing a mobile application using a couple of web services...
but i have a problems, these web services connect the mobile with a
network computers by a wireless connection.
i wanted to ask if there is any way to change the web service address
in the applications (Just the machine name), as i don't want to
recompile the application every time i change the machine, and i don't
want also to make every machine i use with the same name of the web
service host name.

i used to do this in the windows application by reading the connection
reference from the .config file, but there is no config file in mobile
applications i think.....

anyone has any ideas!!

Thanks,

Ahmed Waly
Egypt
ctacke/
5/21/2006 7:45:14 AM
Change the service Url property.

-Chris


[quoted text, click to view]

GOGA
5/22/2006 12:28:12 AM
Hi Chris,
Thanks for fast replying, but can u please show me a snippet of how to
do this!
should i add web reference first or not!

please give me some hints.

Thanks.
GOGA
5/22/2006 4:13:35 PM
thanks you very much, that helped.
Simon Hart
5/22/2006 10:10:42 PM
See if this helps:

http://msdn2.microsoft.com/en-us/library/ms153652.aspx

Regards,
Simon.

[quoted text, click to view]

AddThis Social Bookmark Button