By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,672 Members | 1,303 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,672 IT Pros & Developers. It's quick & easy.

Web Services Help: Can you choose a Web Service at run time?

P: n/a
I'd like to build a content management application that can connect to
any webserver to manage content. Can I do this with Web Services? Is
it possible to choose a web service at run time, or would such a project
have to be recompiled to use a specific web server?

Thanks!

Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Len,

You could do this at runtime, but you would have to have a lot of
administrative code behind it. The reason is that one content management
system could have one interface for the functionality that you need, and
another could have another interface (programmatic, that is). Your task
becomes easier if you are going to place the same back end code (web
service) on each server, then you can use one reference on the client side,
and just change where you are directing the call to.

If you can not be assured that the servers share the same interface,
then you will have to create the requests for the web service dynamically.
..NET will help with this, but it still will be a lot of work.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"len smith" <ig******@yahoo.com> wrote in message
news:RL***************@nwrdny02.gnilink.net...
I'd like to build a content management application that can connect to
any webserver to manage content. Can I do this with Web Services? Is
it possible to choose a web service at run time, or would such a project
have to be recompiled to use a specific web server?

Thanks!

Nov 13 '05 #2

P: n/a
You should be able to do this by modifying the Url
property before calling the methods. For example:

localhost.WebService WS = new localhost.WebService();
WS.Url = "http://www.newurl.com";
WS.DoMethod();

If that's what you're looking to do, hope this helps.

- Chris
-----Original Message-----
I'd like to build a content management application that can connect toany webserver to manage content. Can I do this with Web Services? Isit possible to choose a web service at run time, or would such a projecthave to be recompiled to use a specific web server?

Thanks!

.


Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.