I have a similar problem trying to use web services with awindows form application. I currently use a static web referencein my project. What I am trying to do is to programatically change the url based on a server name passed in, and whether ornot the PDA is in the active sync cradle.
IE. If the PDA is in the cradle, use localhost. If the PDA isn'tin the cradle, then allow connection over wi-fi to any validwebservice by changing the computer name in the urlprogramatica lly during runtime.
Is this the correct way to do this?
(PS. Can't seem to find the UrlBehaviorProp erty in my projectproperti es for my static web reference. What am I missing?).
--------------------------------
From: Nick
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>8n9sDHwTF0i S4VZHrnO+7g==</Id>
IE. If the PDA is in the cradle, use localhost. If the PDA isn'tin the cradle, then allow connection over wi-fi to any validwebservice by changing the computer name in the urlprogramatica lly during runtime.
Is this the correct way to do this?
(PS. Can't seem to find the UrlBehaviorProp erty in my projectproperti es for my static web reference. What am I missing?).
--------------------------------
From: Nick
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>8n9sDHwTF0i S4VZHrnO+7g==</Id>
Comment