0
[OperationContract]
[WebGet(UriTemplate = "/Get_Flights/{partnerCode}/{from_airport_code}/{to_airport_code}/{date_from}/{date_to}/{round_trip}/{direct_flight}/{adults}/{kidA}/{kids}/{infants}/{airline_code}/{service_class}/{includeWebFares}/{includeServiceFee}/{LangId}",
RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json)]
List<List<Dictionary<string, object>>> Get_Flights(string partnerCode,
string from_airport_code,
string to_airport_code,
string date_from,
string date_to, string round_trip, string direct_flight,
string adults, string kidA, string kids, string infants,
string airline_code, string service_class, string includeWebFares, string includeServiceFee, string LangId);
和上述
public List<List<Dictionary<string, object>>> Get_Flights(string partnerCode,
string from_airport_code,
string to_airport_code,
string date_from,
string date_to, string round_trip, string direct_flight,
string adults, string kidA, string kids, string infants, string airline_code,
string service_class,string includeWebFares, string includeServiceFee,string LangId)
{ //get data from webservice}
對於我不能爲一個呼叫的公共方法運行兩次理解的理由。我還有另外53個webmethods(get,post)在服務中,並且都運行正常。 我會appriciate任何幫助。
Thx提前。
你可以發佈你調用該服務的代碼! –
沒有意義,代碼有許多類和許多代碼行。但最後生成一個數據集,我轉換它。這發生好。 –
除了我有很多玩相同邏輯的方法。 –