Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Base Addresses for WCF Clients ?

 
 
Old 12-18-2007   #1 (permalink)
NonNB


 
 

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

My System SpecsSystem Spec
Old 01-11-2008   #2 (permalink)
Shimon Sim


 
 

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

My System SpecsSystem Spec
Old 01-14-2008   #3 (permalink)
NonNB


 
 

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.
My System SpecsSystem Spec
Old 01-14-2008   #4 (permalink)
Shimon Sim


 
 

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.

My System SpecsSystem Spec
Old 01-15-2008   #5 (permalink)
NonNB


 
 

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
My System SpecsSystem Spec
Old 01-15-2008   #6 (permalink)
Shimon Sim


 
 

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

My System SpecsSystem Spec
Old 01-17-2008   #7 (permalink)
Yorik


 
 

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.
My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
two email clients Live Mail
DFS Clients Vista General
maximum LAN clients? Vista General
web based clients PowerShell


Vista Forums 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 Ltd

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