The remote server returned an error: NotFound.

WCF笔记

WCF最重要的就是能够快捷地创建一个服务(Service).一个WCF Service由三部分组成:

1.Service Class:一个标记了[ServiceContract]Attribute的类,在其中可能包含了多个方法,除了标记一些WCF特有的Attribute外,这个类和一般类没什么区别。

2.Host(宿主):可以是应用程序,也可以是ASP.NET程序,或是Window Service等,它是WCF Service运行环境。

3.Endpoints:可以是一个也可以是一组,它是WCF实现通信的核心要素。

Endpoint的构成

Endpoint由三部分组成:Address,Binding,Contract,简称ABC.

1.Address:Endpoint的网络地址,它标记了消息发送的目的地。(where is the endpoint?)

2.Binding:描述的是如何发送消息,例如消息发送的传输协议(如TCP,HTTP),安全(如SSL,SOAP消息安全)(how to communicate with endpoint?)

3.Contract描述的是消息所包含的内容,以及消息的组织和操作方式,例如是one-way,duplex和request/reply(what functionalities do the endpoint provide?)

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2021-11-20
猜你喜欢
  • 2022-01-09
  • 2021-06-06
  • 2021-09-26
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案