Interesting...

On Oct 3, 2012, at 9:36 AM, Gabriel Perez wrote:

> 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:
> http://docs.castleproject.org/Windsor.WCF-Facility-Registration.ashx
> 
> My problem is fixed anyways. Thanks for helping out Craig!
> 
> On Wednesday, October 3, 2012 8:49:08 AM UTC-4, Craig Neuwirt wrote:
> 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 [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/castle-project-users?hl=en.
> 
> 
> -- 
> 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/-/Z10dianb9soJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/castle-project-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to