2019年5月25日 星期六

指令編譯WCF程式

https://www.cnblogs.com/tianzhiliang/archive/2011/08/09/2132532.html

C:\temp>csc /nologo /r:"c:\WINDOWS\Microsoft.Net\Framework\v3.0\Windows Communication
Foundation\System.ServiceModel.dll" HelloWCFApp.cs

OperationContract(IsOneWay=true)的用途

https://blog.darkthread.net/blog/wcf-survey-6/

IsOneWay是用來定義單向合約沒錯,但重點在「呼叫端呼叫WCF作業,但不期待收到任何回應」,其真正意義更傾向「Fire and Forget」(射後不理)。因此,指定OperationContract(IsOneWay=true)的方法傳回值應為void,最重要的差別在於呼叫該方法後,不會等待作業完成就繼續往下執行。

WCF六种消息交换模式

https://docs.microsoft.com/zh-cn/dotnet/framework/wcf/extending/choosing-a-message-exchange-pattern

这使您总共有六种 MEP (Message Exchange Pattern)可以选择:
  • 数据报 Datagram
  • 请求-响应 Request-response
  • 双工 Duplex
  • 带会话的数据报 Datagram with sessions
  • 带会话的请求-响应 Request-response with sessions
  • 带会话的双工  Duplex with sessions
Web Services Message Exchange Patterns
https://www.w3.org/2002/ws/cg/2/07/meps.html

WS-Addressing

https://www.w3.org/TR/ws-addr-core/

SOAP 1.2 MTOM

https://www.w3.org/TR/soap12-mtom/