Hello,
i try to configure a nms binding for a simple (the one created by the vs
2008 template) wcf service.
When i run the test client it throws this exception:
System.InvalidOperationException: Contract requires TwoWay (either
request-reply or duplex), but Binding 'NmsBinding' doesn't support it or
isn't configured properly to support it.
at
System.ServiceModel.Description.DispatcherBuilder.BuildChannelListener(StuffPerListenUriInfo
stuff, ServiceHostBase serviceHost, Uri listenUri, ListenUriMode
listenUriMode, Boolean supportContextSession, IChannelListener& result)
at
System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription
description, ServiceHostBase serviceHost)
at System.ServiceModel.ServiceHostBase.InitializeRuntime()
at System.ServiceModel.ServiceHostBase.OnBeginOpen()
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan
timeout)
at System.ServiceModel.Channels.CommunicationObject.Open()
at Microsoft.Tools.SvcHost.ServiceHostHelper.OpenService(ServiceInfo
info)
Is this correct? Or have i misconfigured something? This is my
configuration:
<system.serviceModel>
<bindings>
<nmsBinding>
<binding name="NewBinding0" destination="test.queue" />
</nmsBinding>
</bindings>
<extensions>
<bindingElementExtensions>
<add name="nmsBinding" type="Apache.NMS.WCF.NmsTransportElement,
Apache.NMS.WCF, Version=1.1.0.1642, Culture=neutral,
PublicKeyToken=82756feee3957618" />
</bindingElementExtensions>
<bindingExtensions>
<add name="nmsBinding" type="Apache.NMS.WCF.NmsBindingCollection,
Apache.NMS.WCF, Version=1.1.0.1642, Culture=neutral,
PublicKeyToken=82756feee3957618" />
</bindingExtensions>
</extensions>
<services>
<service behaviorConfiguration="WcfServiceLibrary1.Service1Behavior"
name="WcfServiceLibrary1.Service1">
<clear />
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange"
listenUriMode="Explicit">
<identity>
</identity>
</endpoint>
<endpoint address="tcp://johannes-xp:61616" binding="nmsBinding"
bindingConfiguration="" contract="WcfServiceLibrary1.IService1" />
<host>
<baseAddresses>
<add
baseAddress="http://localhost:8731/Design_Time_Addresses/WcfServiceLibrary1/Service1/"
/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="WcfServiceLibrary1.Service1Behavior">
<!-- To avoid disclosing metadata information,
set the value below to false and remove the metadata endpoint
above before deployment -->
<serviceMetadata httpGetEnabled="True"/>
<!-- To receive exception details in faults for debugging
purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="False" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Thanks, Johannes.
--
View this message in context:
http://www.nabble.com/NMS-WCF-Binding-tp24607632p24607632.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.