简体   繁体   English

测试WCF服务应用程序

[英]Testing a WCF Service Application

How can you test a WCF Service Application like you could do with ASP.NET Web Services? 您如何像使用ASP.NET Web服务一样测试WCF服务应用程序? When I run the WCF Service Application, I would expect a test page to appear that would allow me to test all the services contained in the web application. 当我运行WCF服务应用程序时,我希望出现一个测试页面,该页面将允许我测试Web应用程序中包含的所有服务。 This does not happen. 这不会发生。 Am I missing how to do this? 我想念怎么做吗?

There is no web interface for testing your service. 没有用于测试服务的Web界面。 However, depending on which features your service are using you might be able to use the WCF Test Client included in the SDK. 但是,根据服务使用的功能,您可能可以使用SDK中包含的WCF测试客户端 Unfortunately it has a lot of limitations so it wont work on all services. 不幸的是,它有很多限制,因此无法在所有服务上使用。

From msdn: 来自msdn:

The following is a list of features not supported by WCF Test Client: 以下是WCF测试客户端不支持的功能列表:

Types: Stream, Message, XmlElement, XmlAttribute, XmlNode, types that implement the IXmlSerializable interface, including the related XmlSchemaProviderAttribute attribute, and the XDocument and XElement types, the ADO.NET DataTable type and the DataSet type (as well as its typed-derived classes). 类型:流,消息,XmlElement,XmlAttribute,XmlNode,实现IXmlSerializable接口的类型,包括相关的XmlSchemaProviderAttribute属性,XDocument和XElement类型,ADO.NET DataTable类型和DataSet类型(以及其类型派生的类型)类)。

Duplex contract. 双重合同。

Transaction. 交易。

Security: CardSpace , Certificate, and Username/Password. 安全性:CardSpace,证书和用户名/密码。

Bindings: WSFederationbinding, any Context bindings and Https binding, WebHttpbinding (Json response message support). 绑定:WSFederationbinding,任何Context绑定和Https绑定,WebHttpbinding(Json响应消息支持)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM