Re: WCF Facility and wsdl targetNamespace

98 views
Skip to first unread message

Craig Neuwirt

unread,
Oct 3, 2012, 8:49:02 AM10/3/12
to castle-pro...@googlegroups.com
Thats just normail attributes for WCF :

ServiceBehaviorAttribute.Namespace
DataContractAttribute.Namespace

On Oct 2, 2012, at 7:54 PM, Gabriel Perez wrote:

Hey all,

I'm using the WCF facility with Windsor and I'm trying to figure out how to configure it so it changes the default targetNamespace from http://targeturi.org. I know that in regular WCF I set the namespace in the ServiceContract and in the ServiceBehavior attributes. My ServiceContract is set properly but the Windsor documentation says you shouldn't use the ServiceBehavior.

Here is my current config:
          container.AddFacility<WcfFacility>(f => f.CloseTimeout = TimeSpan.Zero)
            .Register(
            Component.For<IServiceBehavior>().Instance(debug), 
                Component.For<IMyService>()
                                    .ImplementedBy<MyService>().Named("MyService")
                                    .AsWcfService(new DefaultServiceModel().Hosted()).LifestylePerWcfOperation());

Any insights would be appreciated.

Thanks,
Gabe.

--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/jLT2wQ6x_G8J.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.

Gabriel Perez

unread,
Oct 3, 2012, 10:36:21 AM10/3/12
to castle-pro...@googlegroups.com
Now wasn't that silly of me :-( In my defense I was thrown off by the documentation on the Castle site :-) Is there any reason for the following warning on the docs: 

If you are switching from WCF activation to Windsor's WcfFacility, please make sure to remove the ServiceBehavior attribute from service type.

Maybe that documentation could be changed:

My problem is fixed anyways. Thanks for helping out Craig!
To unsubscribe from this group, send email to castle-project-users+unsub...@googlegroups.com.

Craig Neuwirt

unread,
Oct 3, 2012, 10:40:31 AM10/3/12
to castle-pro...@googlegroups.com
Interesting...


To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages