【发布时间】:2015-05-15 00:11:15
【问题描述】:
我正在使用
在 Windows 服务器服务总线上发布 xml BrokeredMessage message = new BrokeredMessage("Xml as string");
尝试在 wcf 服务中读取如下
//System.ServiceModel.Channels.Message
public void TopicReader(Message message)
{
}
配置设置为
<bindings>
<netMessagingBinding>
<binding name="messagingBinding" closeTimeout="00:03:00" openTimeout="00:03:00"
receiveTimeout="00:03:00" sendTimeout="00:03:00" sessionIdleTimeout="00:01:00"
prefetchCount="-1">
<transportSettings batchFlushInterval="00:00:01" />
</binding>
</netMessagingBinding>
</bindings>
<behaviors>
<endpointBehaviors>
<behavior name="securityBehavior">
<transportClientEndpointBehavior>
<tokenProvider>
<windowsAuthentication>
<stsUris>
<stsUri value="https://MahindeName/Namespace" />
</stsUris>
</windowsAuthentication>
</tokenProvider>
</transportClientEndpointBehavior>
</behavior>
端点名称="TopicReader" listenUri="sb://MahindeName/Namespace/TopicName/subscriptions/Sub" address="sb://MahindeName/Namespace/TopicName" binding="netMessagingBinding" bindingConfiguration="messagingBinding" contract="Service.ITopicReader" behaviorConfiguration="securityBehavior"
服务正在托管,没有任何错误,但我们无法接收消息并且传递计数正在增加。
【问题讨论】:
标签: wcf wcf-binding azureservicebus