0
我正在寫一個Web服務,其中一個Web方法接受20個項目的太多參數。我如何編寫我的Web方法。我應該逐個獲得參數嗎? 是這樣的:如何在Web服務中實現一個接受太多參數的Web方法?
[WebMethod]
public string InsertWorkerVariableInfo(string UserName,string Password, string WorkerCode,int Allegiance,Int16 Religious,Int16 Marriage,Int16 Physical,Int16 Gallantry
,byte SponsershipQty,byte ChildQty,Int16 Military,string Tell,String CellPhone,int State,int City,int District,
string Address,string Postal,string Email,Int16 Religion,Int16 InsuranceType,string InsuranceCode,string Description,
string LocalIp,string[] Majors)