根據我的理解的元數據可以使用三種類型的綁定進行探討:哪種協議不WCF測試客戶端使用(WcfTestClient.exe)來獲取元數據
mexHttpBinding
mexHttpsBinding
mexTcpBinding
是否所有這些綁定通過WcfTestClient.exe
支持?
UPD
據筆者瞭解另一種方式來獲得元數據獲取WSDL信息(發佈元數據的老辦法)。
如果EcfTestClient.exe
支持上面列出的所有這些綁定,則不需要WSDL
。根據我的理解,啓用WSDL
我需要將<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
放在web.config中behaviors
。如果使用mexHttpBinding,mexHttpsBinding,mexTcpBinding
綁定檢索元數據,則不需要此操作。請糾正我,如果我錯了。在這種情況下,WcfTestClient.exe
會查找元數據。
如果我兩個httpGetEnabled
和httpsGetEnabled
WcfTestClient.exe
辦假證無法得到服務信息:
Error: Cannot obtain Metadata from http://localhost:35168/mySrv.svc If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address.
看起來WcfTestClient.exe
正從WSDL,而不是從綁定mexHttpBinding , mexHttpsBinding , mexTcpBinding
信息?
但根據在郵件正文部分UPD描述我的實驗看起來像WCFTestClient只使用舊WSDL的方式? – vico