Connect to a single WCF service with two different endpoint bindings -
i new wcf , (i hope) i'm having "noob" problem. searched site , did not find answer i'm looking for. apologize if has been answered , missed it.
i programmaticly connecting service using channelfactory. problem i'm having client cannot connect first service endpoint, unless comment out second 1 (the msmq one). helps.
the contracts different, , i'm specifying correct bindings (wsdualhttpbinding , netmsmqbinding, respectively) on client-side.
please let me know if there way fix this, or if more information required.
i appreciate help.
tyler
<services> <service behaviorconfiguration="defaultbehavior" name="[intentionally removed]"> <endpoint address="[intentionally removed]" behaviorconfiguration="defaultendpointbehavior" binding="wsdualhttpbinding" bindingconfiguration="dualbinding" name="wrapperendpoint" contract="[intentionally removed]" /> <endpoint address="[intentionally removed]" behaviorconfiguration="defaultendpointbehavior" binding="netmsmqbinding" bindingconfiguration="msmqbinding" name="msmqendpoint" contract="[intentionally removed]" /> </service> </services>
this topic might related: http://social.msdn.microsoft.com/forums/is/wcf/thread/643371b4-00a7-472b-8bea-3055f2eb90ed
i don't think can have single service 2 different contracts. think when have both endpoints, wcf failing start properly, when comment out 1 endpoint, works fine because endpoints share same contract.
wcf going try define wsdl service (not per endpoint) based off contract, if service has more 1 contract, won't know do.
the proper thing split 2 services.
edit:
on other hand, this article indicates having service multiple endpoints different contracts works fine, perhaps wrong.
hmmm....
Comments
Post a Comment