none
WCF测试客户端不支持此操作? RRS feed

  • 问题

  •        [OperationContract]
            void Join(Peer peer);
            [OperationContract]
            void SendMessageTo();

    实现为:
     public void Join(Peer peer)
            {

            }
            public void SendMessageTo()
            {

            }

    在join函数中加入参数Peer peer后启动测试服后结果Join图标为红色感叹号。WCF测试客户端布置持此操作。去掉参数后正常。这是为啥?新人!各位大虾多指教!谢谢
    2010年3月24日 13:27

答案

  • WCFTestClient不支持wcf全部功能,你还是创建一个客户端测试一下吧。

    WCFTestClient不支持的特性有:

    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).

    Duplex contract.

    Transaction.

    Security: CardSpace , Certificate, and Username/Password.

    Bindings: WSFederationbinding, any Context bindings and Https binding, WebHttpbinding (Json response message support).

    2010年3月30日 7:45

全部回复