Although the author is against using "Add service reference..." I've been
researching for a while and came to the conclusion that if your client is a
Silverlight application, most of the benefits of doing everything manually
doesn't apply... most specifically you can't use your service contract
assembly in SL (I know that the article point to a way to cheat VS to allow
referencing it) because in SL you _have to_ apply the Async pattern to your
service contracts and in your service implementations you _have not to_
So to overcome this, the "Add service reference" option is very handy (I'm
also just getting started with all this stuff, so I don't know if there will
be complications further in the process) since it automates the application
of the Async pattern.
To enable your services to be discovered by the "Add service reference"
tool, you can just configure it like this:
<system.serviceModel>
<services>
<service name="XXX.Service.Impl.Service"
behaviorConfiguration="behavior1">
<endpoint address="" binding="basicHttpBinding"
contract="XXX.Service.IService"/>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="behavior1">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
We can chat in spanish if you like ([email protected],
skype=gschuager)
On Mon, Apr 6, 2009 at 2:24 PM, "José F. Romaniello" <[email protected]
> wrote:
>
> Germán thanks for the link, looks very interesting,
> This article doesn't recomends "Add Service Reference", so I think that
> for now I don't need the wsdl.
>
> Thanks very much
>
>
> Germán Schuager escribió:
> > Hi Jose,
> >
> > You only need to reference WCF facility from where you are hosting
> > your services (web application or windows service?) and not from your
> > SL client.
> >
> > If you are getting started with WCF and SL then read this article:
> >
> http://www.netfxharmonics.com/2008/11/Understanding-WCF-Services-in-Silverlight-2
> >
> >
> > On Mon, Apr 6, 2009 at 11:03 AM, JoseFR <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >
> > I want to know if is possible. I'm new to silverlight and WCF
> > Facility.
> > My main doubt is about add castle and wcf faciility references to the
> > silverlight project.
> >
> >
> >
> >
> > >
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---