關於webservice不支援方法過載的解決辦法

2021-09-08 03:07:50 字數 710 閱讀 8500

由於用到方法過載,沒想到在web服務中會出現錯誤:

system.data.datatable get_sendedemail(int32, system.string) 和 system.data.datatable get_sendedemail(int32) 同時使用訊息名稱「get_sendedemail」。使用 webmethod 自定義特性的 messagename 屬性為方法指定唯一的訊息名稱。

原來,必須在方法中指定messagename來使用者唯一標識且在類中指示不支援1.1標準

[webservice(namespace = 

"")]

//[webservicebinding(conformsto = wsiprofiles.basicprofile1_1)]

[webservicebinding(conformsto = wsiprofiles.none)]

public

class email : system.web.services.webservice

[webmethod(description = 

"發件箱(返回table)

",  messagename = 

"yy")]

public datatable get_sendedemail(

int userid,

string

where)

mysql不支援 MySQL不支援的特性

mysql 1 不支援物化檢視。2 不支援位圖索引。3 不支援並行查詢。4 不支援雜湊關聯,mysql的所有關聯都是巢狀迴圈關聯。不過,可以通過建立乙個雜湊索引來曲線實現。5 不允許對同一表同時進行查詢和更新。報錯 update tb1 as outer tb1 set cnt select cou...

rsyslog input 不支援變數

input type imfile file usr local apache tomcat 7.0.55 8082 logs localhost access log.txt tag zjzc api access01 severity info facility local5 不支援這種寫法 i...

linux vi 不支援中文

問題說明 網頁html與chi語言的結合,使用c語言輸出html語句,因為其中用到中文,出現亂碼 問題解決 1.在cgi中用到的 使用utf 8編碼,utf 8是國際統一的中文編碼 具體語句為 fprintf cgiout,metacharset utf 8 參考文章 2.上述步驟完成後,重新編譯,...