我想从网络摄像机获取事件,我的步骤是:
使用 NotificationProducerClient 发送订阅请求:
using (var client = new NotificationProducerClient(Bind, new EndpointAddress(EventsServiceAddress)))
{
client.ClientCredentials.UserName.UserName = "un";
client.ClientCredentials.UserName.Password = "pw";
var subScribe = new Subscribe() {
ConsumerReference = new EndpointReferenceType1 {
Address = new AttributedURIType { Value = "My service URL" },
},
InitialTerminationTime = "PT1M"
};
subRes = client.Subscribe(subScribe);
}
但订阅后我无法在我的 Service runnig 实例中收到任何通知。
- 我做错了什么吗?
- 订阅响应中的订阅引用是什么,与它有什么关系?
我看到这里有一些关于这个主题的问题,但没有人回答希望得到答案......
谢谢