webget

    9熱度

    2回答

    WebGetAttribute對於Method =「GET」的WebInvokeAttribute而言只是語法糖嗎? 還是有一個根本的區別?

    0熱度

    1回答

    我們有一個ado.net DataService的1.0呼叫正在傳遞到[WebGet]服務操作通過BeginExecuteBatch一批。 一切完美我們的開發服務器上 - 我們必須配置爲使用IIS,而不是卡西尼Web服務器,使之儘可能接近我們的生產服務器,我們可以項目。 當我們發佈到生產服務器時,除批處理調用外,所有的服務操作都可以正常工作,其中對象與目標類型不匹配。。我一直無法找到任何原因。 我

    3熱度

    1回答

    我有這樣一個WCF服務宣告操作:在嘗試調用URL Test/You%26Me時 [WebGet(UriTemplate = "Test/{*testString}")] public String Test(String testString) { return testString; } 但是,IIS會返回一個錯誤: A potentially dangerous Reque

    2熱度

    2回答

    我試圖從REST WCF服務返回一個通用的ICollection。以下是可能的嗎? [ServiceContract] public class WebConfigurationManager { [WebGet] [OperationContract] public ICollection<string> GetStrings() { return

    2熱度

    1回答

    我們試圖通過使用WebGetAttribute和UriTemplate公開REST接口,將可變數量的鍵值對傳遞給我們的服務。我們想要做什麼: [WebGet(UriTemplate="/Query/Select?{query}"] Response Query(string query); 在客戶端我們要指定某些鍵幾次,如: hllp://本地主機/爲MyService /查詢/選擇字段=名

    2熱度

    2回答

    我創建一個WCF服務與方法 [OperationContract] [WebGet(UriTemplate = "acl/f={fullFileName}")] string GetACL(string fullFileName); fullFileName是一個完整路徑到網絡文件或主機上的文件。 主機是帶有webHttpBinding和行爲配置的Windows服務。 我想使用的東西從瀏覽

    21熱度

    4回答

    WCF爲ServiceContract中的WebGet註釋中的ResponseFormat屬性提供了兩個選項。 [ServiceContract] public interface IService1 { [OperationContract] [WebGet(UriTemplate = "greet/{value}", BodyStyle = WebMessageBody

    4熱度

    1回答

    我已經創建了一個OData的端點(使用實體框架,WCF數據服務) ,並增加了自定義測試WebGet測試方法如下所示: [WebGet(UriTemplate = "{text}")] public IQueryable<string> SplitString(string text) { if (text == null) throw new DataService