I'd have to concur with Richard on this one.  Of note, the same could be
said for ASP.NET.  Sure you can go with almost no configuration, but most
websites have a staggering about of data in their web.config files.  Just
look at the provider model stuff, and AJAX...its freaking huge...but why
don't we care?  Because the tool goes a good job of managing it for us.
When we create a AJAX site, it injects most of the right bits in the
web.config and we don't notice it after a while.  Same can be said for WCF
IMHO.

Thanks,

Shawn Wildermuth
http://adoguy.com
http://wildermuthconsulting.com
http://geekdinners.com
Microsoft MVP (C#), MCSD.NET, Author and Speaker

The Silverlight Tour is coming to a city near you!

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Richard Blewett
Sent: Thursday, February 28, 2008 9:27 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] WCF WTF

Hi Paul,

I know when I first started doing WCF work it was quite overwhelming the
amount of config. But having been working with it for a few years now I find
it pretty quick to create the necessary settings - it's not that complex
once you get your head round the structure.

There is a base set of config that needs to be there - once you have the
base there the rest is not that large I find

This is pretty much the basic to get you running (written in outlook so
sorry for typos)

<system.serviceModel>
  <services>
    <service name=[dotnet implementation class here]
behaviorConfiguration="md" >
        <host>
          <baseAddresses>
             <add baseAddress="http://[rest of address] /> <!-- used for
metadata delivery -->
          </baseAddresses>
        </host>

        <endpoint address=[relateive address to base address here]
                  binding=[name of the binding you need to use]
                  contract=[dotnet contract interface name here] />
    </service>

  </services>
  <behaviours>
     <serviceBehaviors>
       <behavior name="md">
          <serviceMetadata httpGetEnabled="true"/>
       </behaviour>
     </serviceBehaviors>
  </behaviours>
</system.serviceModel>

Regards

Richard Blewett
DevelopMentor
http://www.dotnetconsult.co.uk/weblog2

> -----Original Message-----
> From: Discussion of advanced .NET topics. [mailto:ADVANCED-
> [EMAIL PROTECTED] On Behalf Of Paul Cowan
> Sent: 28 February 2008 14:02
> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> Subject: [ADVANCED-DOTNET] WCF WTF
>
> Too add to my earlier discussion.Has anybody done anything with WCF.The
> amount of configuration is absolutely staggering.I am not doing
> anything that [EMAIL PROTECTED]
> _________________________________________________________________
> Telly addicts unite!
> http://www.searchgamesbox.com/tvtown.shtml
> ===================================
> This list is hosted by DevelopMentorR  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com

===================================
This list is hosted by DevelopMentor.  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to