Changing web service endpoint.

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
 
A

Alex Feinman [MVP]

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)
 
N

Neil Cowburn [MVP]

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.
 
A

Alex Feinman [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top