WCF REST Service not visible in WCFTestClient

前端 未结 3 1082
盖世英雄少女心
盖世英雄少女心 2020-12-16 14:03

I have successfully configured 3 endpoints for my prototype service. The endpoints are basicHttpBinding, wsHttpBinding, and webHttpBinding. The only glitch I have at the mom

相关标签:
3条回答
  • 2020-12-16 14:35

    try adding the "mexHttpBinding" endpoint that exposes the metadata

    0 讨论(0)
  • 2020-12-16 14:51

    It's because web endpoints (unlike SOAP ones) do not expose metadata, so the test client doesn't know about it when it downloads the WSDL for the service. Unlike SOAP, which has well-defined formats for exposing metadata (WSDL, MEX), web (a.k.a. REST) endpoints do not.

    That's the short story. If you want to know more details, I wrote a blog post about it at http://blogs.msdn.com/b/carlosfigueira/archive/2012/03/26/mixing-add-service-reference-and-wcf-web-http-a-k-a-rest-endpoint-does-not-work.aspx

    0 讨论(0)
  • 2020-12-16 14:52

    The following is a list of features not supported by WCF Test Client:

    • Types: Stream, Message, XmlElement, XmlAttribute, XmlNode, types that implement the IXmlSerializableinterface, including the related XmlSchemaProviderAttribute attribute, and the XDocument and XElement types and the ADO.NET DataTable type.

    • Duplex contract.

    • Transaction.

    • Security: CardSpace , Certificate, and Username/Password.

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

    Source: http://msdn.microsoft.com/en-us/library/bb552364.aspx

    0 讨论(0)
提交回复
热议问题