出於某種原因,我被問到是否可以重寫服務的/ help方法來返回自定義數據。目前,我有這樣一個WCF服務中的重載幫助方法
HTTP主叫網址:// {} myDomain的/CRM/Customers.svc/json/help
返回一個可用的
所有方法我在我的serviceContract中嘗試過這樣的事情,但我無法訪問我的方法,這有可能嗎?
[WebInvoke(Method = "GET", UriTemplate = "/help", RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json)]
void GetInformations();
感謝
如果簽名是公開的,而不是私人? –
爲的ServiceContract接口是公開的,所以沒有知名度的麻煩,我認爲 –