Hi, I'm working on a windows forms application that is running on the Pocket
PC. I want to connect to various remote servers via wireless. Since I'm
adding the web reference to the windows forms application, the reference
defaults to http://localhost...etc. Is there a way to have the windows forms
application programatically connect to various remote webservices dynamically
at runtime? Would I need to change the wsdl file during installation of the
webservice on the server to be the local computer name? I'm using C# on both
the server and ppc. A sample would be appreciated. Thanks in advance.
Nick
Keenan Newton - 13 Feb 2005 21:06 GMT
Yup, If you notice Visual Studio should eb creating a web proxy class.
This class should have a property called URL, just change that to which
ever URL you like. In my case I create an inherited calss that
inherits from the Visual Studio web service proxy class, and in my
implementations constructor I change the URL propery there. I hope
this helps