6
試圖從我自己的WCF服務這樣的消費:
[ServiceContract]
public interface IReturnService
{
[OperationContract]
bool GetTransactionList(int lRetailStoreID, int lWorkstationNmbr, int lTaNmbr);
}
但是,當我米從客戶端調用服務,我得到的錯誤,沒有方法GetTransactionList
與3個參數,而是我得到這個標頭:
myWCF.GetTransactionList(int lRetailStoreID, bool lRetailStoreIDSpecified,
int lWorkstationNmbr, bool lWorkstationNmbrSpecified,
int lTaNmbr, bool lTaNmbrSpecified,
out bool GetTransactionListResult,
out bool GetTransactionListResultSpecified)
任何人都知道爲什麼會發生這種情況,以及如何解決它?讓我知道是否需要更多信息。
你能添加您使用調用服務器的代碼?它是一個生成的客戶端嗎? –
您的客戶端代理與服務器的定義是否相同? – Kaf
在此處提問並回答http://stackoverflow.com/q/12964759/1045728 –