Thanks. Using PublishMetaData fixed it. Here is what worked:
var container =
new WindsorContainer()
.AddFacility<WcfFacility>()
.Register(Component
.For<IMyService>()
.ImplementedBy<MyService>()
.LifeStyle
.Transient
.AsWcfService(new
DefaultServiceModel()
.AddBaseAddresses("http://
localhost:1010/MyService")
.AddEndpoints(WcfEndpoint
.BoundTo(new
BasicHttpBinding())
.At("basic"))
.PublishMetadata(o
=> o.EnableHttpGet())))
.Register(Component.For<IMyRepository>().ImplementedBy<MyRepository>());
On Aug 17, 12:50 pm, Craig Neuwirt <[email protected]> wrote:
> I service is ok. I think you need PublishMetadata() instead of WithMetadata()
>
> On Aug 13, 2010, at 10:27 AM, Khash wrote:
>
>
>
> > Sent to your email address.
>
> > On Aug 12, 12:39 pm, Craig Neuwirt <[email protected]> wrote:
> >> Is it possible to send me your app, or the part the does the WCF stuff so
> >> I can try it out.
>
> >> On Aug 11, 2010, at 5:58 PM, Khash wrote:
>
> >>> Yes all the dependencies are available. Browsing to WSDL shows a 404
> >>> Bad Request. Same for WCFClientUtil and mex.
>
> >>> On Aug 11, 6:18 pm, Craig Neuwirt <[email protected]> wrote:
> >>>> So you can't browse to wsdl? Are all dependencies of MyService
> >>>> available?
>
> >>>> On Aug 11, 2010, at 1:53 AM, Khash wrote:
>
> >>>>> I'm trying to host a WCF service inside a console app using Castle-
> >>>>> Windsor 2.5 (.NET 4) with the following code:
>
> >>>>> new WindsorContainer()
> >>>>> .AddFacility<WcfFacility>()
> >>>>> .Register(
> >>>>> Component.For<IMyService>().ImplementedBy<MyService>()
> >>>>> .ActAs(new DefaultServiceModel()
> >>>>> .AddEndpoints(
> >>>>> WcfEndpoint.BoundTo(new
> >>>>> BasicHttpBinding()).At("http://localhost:1010/MyService"),
>
> >>>>> WcfEndpoint.BoundTo(MetadataExchangeBindings.CreateMexHttpBinding()).At("ht
> >>>>> tp://
> >>>>> localhost:1010/MyService/mex"))
> >>>>> ));
>
> >>>>> I don't have and prefer not to have any config in my app.config for
> >>>>> WCF if possible.
>
> >>>>> This however doesn't seem to work (doesn't complain but WcfTestUtil
> >>>>> can't see the service).
>
> >>>>> Am I missing anything?
>
> >>>>> --
> >>>>> 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
> >>>>> athttp://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
> >>> athttp://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
> > athttp://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.