OperationContext context = OperationContext.Current;
//获取传进的消息属性
MessageProperties properties = context.IncomingMessageProperties;
//获取消息发送的远程终结点IP和端口
RemoteEndpointMessageProperty endpoint = properties[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty;
WCF中Stream传递后Length属性无效
当调用WCF方法提示客户端与服务端绑定不一致时,如果客户端把服务引用删除重新添加则有可能会解决此问题。
[asp.net中的wcf获取客户端ip]asp.net中的wcf获取客户地址不得不说的事项
http://m.bbyears.com/asp/33678.html
推荐访问: