PC Review


Reply
Thread Tools Rate Thread

Change EndPoint

 
 
Carlos
Guest
Posts: n/a
 
      15th Apr 2009
I have an console app that call a web service, I need to be able to change
the endpoint so I can consume the webservice form differents server if I
need.

Any Ideas how to do it. ? Ican't find a good example .

Thanks
C

 
Reply With Quote
 
 
 
 
cowznofsky
Guest
Posts: n/a
 
      15th Apr 2009
On Apr 15, 2:52*pm, "Carlos" <pal...@gmail.com> wrote:
> I have an console *app that call a web service, I need to be able to change
> the endpoint so I can consume the webservice form differents server if I
> need.
>
> Any Ideas how to do it. ? Ican't find a good example .
>
> Thanks
> C


It looks like you want to change the server at runtime, but otherwise:

Perhaps you could set up an alias for the web server, and the alias
would be referenced in the endpoint in the config file rather than an
explicit server.

If you had the ability to change where the alias was pointing, then
you wouldn't have to change anything in the config file.

 
Reply With Quote
 
Mr. Arnold
Guest
Posts: n/a
 
      15th Apr 2009

"Carlos" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have an console app that call a web service, I need to be able to change
>the endpoint so I can consume the webservice form differents server if I
>need.
>
> Any Ideas how to do it. ? Ican't find a good example .
>


You use an app.config with appsettings in it and put the iinformation in the
app.cong. Then you use ConfigurationManager in the program and read in the
appsettings.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Endpoint Not Found Exception : There was no endpoint listening Yash Microsoft Dot NET Framework 0 12th Dec 2008 09:22 AM
EndPoint Lou Microsoft VB .NET 1 11th Jun 2007 07:14 AM
EndPoint for HttpWebRequest Christoph Wienands Microsoft Dot NET Framework 0 15th Nov 2005 03:50 AM
No Endpoint Mapper Fresh Kist Microsoft Windows 2000 Networking 0 29th Jan 2004 12:24 AM
endpoint mapping Jay Microsoft Outlook 0 12th Dec 2003 09:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:23 PM.