验证WCF响应 [英] Validate WCF Response
问题描述
我创建了WCF服务,该服务是使用NetNamePipeBinding在Windows Serivce中托管的.
I created WCF service which is host in a Windows Serivce using NetNamePipeBinding.
在客户端,我们正在使用消息头安全性来验证客户端(使用令牌消息检查器).有什么方法可以验证服务/服务器.
From client-side, we are using message-header security to validate the client (using token-Message Inspector). what are possible ways to validate the service/server.
如果有人对如何实现此功能有想法/链接,请提供指导.
If any one have idea/links how to achieve this functionality, please provide guidance.
推荐答案
能否与我们分享更多信息关于您的要求?
Could you share us more information about your requirement?
通常,客户端验证服务证书和来自服务端的响应.服务端验证客户端身份验证和客户端请求.我不确定验证服务/服务器"的含义.
In general, client side validates service certificate and response from service side. Service side validates client authentication and client request. I am not sure what you mean by "validate the service/server".
您要在客户端验证服务响应吗?您要验证哪些信息?
Do you want to validate service response at client side? Which information do you want to valide?
我建议您尝试消息检查器或参数验证.
I suggest you try Message inspector or parameter validate.
#WCF可扩展性–消息检查器
# WCF Extensibility – Message Inspectors
https://blogs.msdn.microsoft.com/carlosfigueira/2011/04/18/wcf-extensibility-message-inspectors/
#如何:在WCF中执行输入验证
# How to: Perform Input Validation in WCF
https://msdn.microsoft.com/en-us/library/ff647875.aspx一个>
这篇关于验证WCF响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!