Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Base Addresses for WCF Clients ?

 
 
Thread Tools Display Modes
Old 12-18-2007   #1 (permalink)
NonNB
Guest


 

Base Addresses for WCF Clients ?

Hi

Have I missed something obvious, or is there no way to use the
"BaseAddress" pattern in a WCF (.NET 3.0) client configuration file,
similar to that offered on the WCF Server?

IMHO this would make the transition from Dev to QA etc versions of WCF
servers much simpler.

Something like :
<system.serviceModel>
<client>
<baseaddresses>
<add baseAddress="http://123.123.123.123:8000" />
</baseaddresses>
<endpoint name="MyEndPoint" address="/MyNameSpace/SomeService"
i.e. the actual endpoint address = baseAddress + endpoint.address

Otherwise I guess this needs to be done programmatically, which seems
a waste of an otherwise flexible config file?

Thanks in Advance

Stuart
Old 01-11-2008   #2 (permalink)
Shimon Sim
Guest


 

Re: Base Addresses for WCF Clients ?

There is not base address on client. You just put everything in the endpoint
address.

"NonNB" <nonamebrande@xxxxxx> wrote in message
news:e085d8ba-0591-4785-ba2e-546cf76c2902@xxxxxx
Quote:

> Hi
>
> Have I missed something obvious, or is there no way to use the
> "BaseAddress" pattern in a WCF (.NET 3.0) client configuration file,
> similar to that offered on the WCF Server?
>
> IMHO this would make the transition from Dev to QA etc versions of WCF
> servers much simpler.
>
> Something like :
> <system.serviceModel>
> <client>
> <baseaddresses>
> <add baseAddress="http://123.123.123.123:8000" />
> </baseaddresses>
> <endpoint name="MyEndPoint" address="/MyNameSpace/SomeService"
> i.e. the actual endpoint address = baseAddress + endpoint.address
>
> Otherwise I guess this needs to be done programmatically, which seems
> a waste of an otherwise flexible config file?
>
> Thanks in Advance
>
> Stuart

Old 01-14-2008   #3 (permalink)
NonNB
Guest


 

Re: Base Addresses for WCF Clients ?

Thanks for the reply Shimon. Ctrl H it is, or I guess will need to do
this programatically and essentially "reinvent" a more proprietary /
customized config file.
Old 01-14-2008   #4 (permalink)
Shimon Sim
Guest


 

Re: Base Addresses for WCF Clients ?

I don't get why can't you use config the way it is now.

What is the difference if you change is in endpoint
address=http://server1/endpoint
to different server2 or using base address?


"NonNB" <nonamebrande@xxxxxx> wrote in message
news:fec538df-80a3-4d7d-9097-3056808b55a5@xxxxxx
Quote:

> Thanks for the reply Shimon. Ctrl H it is, or I guess will need to do
> this programatically and essentially "reinvent" a more proprietary /
> customized config file.

Old 01-15-2008   #5 (permalink)
NonNB
Guest


 

Re: Base Addresses for WCF Clients ?

Our current project will have ~200 contracts by the time of
completion, but always to just 'one' server - life could have been
easier if just one point of configuration change for all endpoints.

Dev :
net.tcp://localhost:xxx/....

To QA:
net.tcp://qaserver:xxx/...

To Customer (UAT / Pilot / Live)
net.tcp://customerservers:xxx/...
etc
Old 01-15-2008   #6 (permalink)
Shimon Sim
Guest


 

Re: Base Addresses for WCF Clients ?

Thanks.
Finally got you.
Still not sure if programmatically change too much. Find and Replace will do
the job ... if you don't deploy too often to different servers.




"NonNB" <nonamebrande@xxxxxx> wrote in message
news:cd0f391f-4a7c-44d8-97a2-e603a46540b4@xxxxxx
Quote:

> Our current project will have ~200 contracts by the time of
> completion, but always to just 'one' server - life could have been
> easier if just one point of configuration change for all endpoints.
>
> Dev :
> net.tcp://localhost:xxx/....
>
> To QA:
> net.tcp://qaserver:xxx/...
>
> To Customer (UAT / Pilot / Live)
> net.tcp://customerservers:xxx/...
> etc

Old 01-17-2008   #7 (permalink)
Yorik
Guest


 

Re: Base Addresses for WCF Clients ?

"Shimon Sim" wrote:
Quote:

> There is not base address on client. You just put everything in the endpoint
> address.
WCF base addresses do not work sometimes. When I create several AppDomains
and try to use a service with base address of named pipes transport, WCF
tries to create a new pipe with the same name and - no surprise - fails.

For tcp this problem is solved with TCP Port Sharing (though it is not the
best solution to my mind) but for net.pipe you haven't anything similar.
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Clients both behind ISA James B Live Folder Share 3 02-22-2008 01:05 AM
Three mail clients? karl mcgruber Vista mail 2 11-08-2007 08:51 AM
DFS Clients Brian P. Hammer Vista General 43 02-07-2007 06:54 AM
maximum LAN clients? More answers, less red tape Vista General 4 02-01-2007 09:25 AM
web based clients =?Utf-8?B?S2FybCBQcm9zc2Vy?= PowerShell 0 08-17-2006 02:59 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50