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.