Monday, April 16, 2012 1:47 PM
I have succesfully deployed a service that autostarts and also exposes a discovery-endpoint (with a CustomBinding).
Based on the messages in the EventLog the service works fine.
I also created a Client that calls the service. This works fine as long as I use explicit endpoints but when I try to use a dynamic endpoint based on
I get a message that the CustomBinding cannot be found.
This is my clientsideconfiguration
<system.serviceModel> <bindings> <customBinding> <binding name="discoBindingConfiguration"> <discoveryClient> <endpoint kind="discoveryEndpoint" address=http://localhost/ServiceClients/DiscoveryClient binding="customBinding" bindingConfiguration="basicHttpBinding"/> <findCriteria duration="00:00:10" maxResults="2"> <types> <add name="WhiteRebel.AutoStart.Contract.v1.IAutoStart"/> </types> <scopes /> </findCriteria> </discoveryClient> <textMessageEncoding messageVersion="Soap11"/> <httpTransport /> </binding> </customBinding> </bindings> <client> <endpoint kind="dynamicEndpoint" binding="CustomBinding" contract="WhiteRebel.AutoStart.Contract.v1.IAutoStart" endpointConfiguration="discoBindingConfiguration" /> </client> </system.serviceModel>
I can't find very much information about the specific requirements for the customBinding, like
a. Should the adress="http://localhost/. . . . " conform to some rules?
b. Is there a specific binding I should use (other than basicHttpBinding).
c. Anything else I didn't think of.
I have looked on the internet to find more information, but most of it is unspecific. Also the information in "Programming WCF Services" O'Reilly 3rd edition isn't clear on this subject. It seems esy enough but I can't get it to work.
The service is running on a Windows 2008 R2 server with AppFabric.
The client is running on a Windows 7 platform.
There are not other machines in the network.
Tuesday, April 17, 2012 1:55 AMModerator
On this link he is not using a custom binding. On his client configuration he is using WSHttpBinding. This MSDN example also shows calling the service using the WSHttpBinding: http://msdn.microsoft.com/en-us/library/ee816864.aspx
If this answers your question, please use the "Answer" button to say so | Ben Cline
- Marked As Answer by Nico de Bruin Tuesday, April 17, 2012 7:14 AM
Tuesday, April 17, 2012 7:16 AM
The first link was very helpfull because it shows a lot about configuring discovery.