Don't let that stop you.

It's a wiki for a reaason.- just go ahead and someone will get to improve it. That's how wikis work :)

On 15/07/2010 4:15 PM, Fabrice Durieu wrote:

Hello John

I've almost succeeded :)
For the wiki, I'm too much newbie to modify it yet :)

Tx a lot
Fabrice


Hi Fabrice,

You can find some info here:
http://stw.castleproject.org/Windsor.WCF-Integration-Facility.ashx

But remember that this doco is a work in progress, and if you find any
mistakes
please fix it ;)

Regarding setting the base address in code, have a look at the unit tests:
http://github.com/castleproject/Castle.Facilities.Wcf/blob/master/src/Castle.Facilities.WcfIntegration.Tests/WcfClientFixture.cs


Hope this helps
John




________________________________
From: Fabrice<[email protected]>
To: [email protected]
Sent: Tue, 13 July, 2010 5:59:12 AM
Subject: Using WCF facility on client side

Hello everybody

I've a WCF project that works fine but I want to add 2 functionalities:
- Aasynchronous call
- Change the base address by code
- (optional) Declare all endpoint by code

I already use Castle + wcf facility on the server side (and it works like
a
charm) so I try now to use it on the client side.

So can you give me tips or links to blog post that explain a bit how to do
it? I goggled a bit and didn't find a lot detailed things...

My WCF config looks like this:
- 2 different binding (wsHttp&  basicHttp)
- Using certificate for the wsHttp (so certificate encodedValue in the
xml)
- Using long timeout for the basicHttp

Thanks for any tips, any link, etc ! :)
Fabrice


<bindings>
         <basicHttpBinding>
           <binding name="FileServiceBinding" closeTimeout="00:01:00"
             openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:01:00"
             maxReceivedMessageSize="250000000"
             transferMode="Streamed">

           </binding>
         </basicHttpBinding>
         <wsHttpBinding>
           <binding name="SecureBinding">
             <security mode="Message">
               <transport>
                 <extendedProtectionPolicy policyEnforcement="Never" />
               </transport>
               <message clientCredentialType="UserName" />
             </security>
           </binding>
         </wsHttpBinding>
       </bindings>
         <client>
             <endpoint address="http://localhost/DF/UserService.svc";
behaviorConfiguration="ClientCredentialsBehavior"
                 binding="wsHttpBinding"
bindingConfiguration="SecureBinding"
                 contract="DF.Services.Contract.Service.IUserService"
                 name="IUserService">
                 <identity>
                     <certificate encodedValue="...(rem to reduce size)" "
/>
                 </identity>
             </endpoint>
             <endpoint address="http://localhost/DF/MailService.svc";
behaviorConfiguration="ClientCredentialsBehavior"
                 binding="wsHttpBinding"
bindingConfiguration="SecureBinding"
                 contract="DF.Services.Contract.Service.IMailService"
                 name="IMailService">
                 <identity>
                     <certificate encodedValue="...(rem to reduce size)" />
                 </identity>
             </endpoint>
             <endpoint address="http://localhost/DF/FileService.svc";
                 binding="basicHttpBinding"
bindingConfiguration="FileServiceBinding"
                 contract="DF.Services.Contract.Service.IFileService"
                 name="IFileService" />
         </client>

--
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.




--
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.




--
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