Changing web service endpoint.

  • Thread starter Thread starter Steve Miller
  • Start date Start date
S

Steve Miller

We are developing in-house .NET CF applications that use web services. Our
development environment includes development, testing, training, and
production servers. Consequently the developers create applications that
point to the appropriate development server. This would not be a problem on
non-.NET CF development because the .NET Framework supports the URLBehavior
property that will cause the web service proxy class to look for its web
service URL in the app.config file. However, since .NET CF development does
not support he System.Configuration namespace that option is not open to us.
Does anyone have any suggestions on how we can accomplish this server
switch? Currently we have to change the TargetURL of the web service
reference; recompile the code; and deploy it to the proper mobile device.

Steve Miller
Secure Pharmacy Plus
 
You can use OpenNETCF.Configuration namespace to get app.config
functionality. Once read from the .config file the url can be set via public
property of the web service proxy (called URL)
 
This is assuming that the implementation (or at least the WSDL contract) of
the Web service is common across your dev, test, training and live servers.
 
Naturally

Neil Cowburn said:
This is assuming that the implementation (or at least the WSDL contract) of
the Web service is common across your dev, test, training and live servers.
 
Back
Top