WCF Binding Created In Code

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2010-05-28T11:08:38Z Indexed on 2010/05/28 11:11 UTC
Read the original article Hit count: 1115

Filed under:
|
|

Hello

I've a must to create wcf service with parameter.

I'm following this http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/8f18aed8-8e34-48ea-b8be-6c29ac3b4f41

First this is that I don't know how can I set this custom behavior "MyServiceBehavior" in my Web.config in ASP.NET MVC app that will host it.

As far as I know behaviors must be declared in section in wcf.config. How can I add reference there to my behavior class from service assembly?

An second thing is that I the following example the create local host, but how I can add headers used in constructor when I use service reference and it will already create instance of web service, right?

Regards, Daniel Skowronski

© Stack Overflow or respective owner

Related posts about wcf

Related posts about wcf-binding