-
在我的wcf中有一个方法GetAgriProductByID 我在另外一个项目中添加服务引用产生的reference.cs文件中发现多了两个类
public partial class GetAgriProductByIDRequest
public partial class GetAgriProductByIDResponse 怎么回事呢?
在request的类中包含了,调用参数,每个参数作为一个属性。
response中包含了返回的参数,包括函数返回值和out返回值。
正常的异步代码应该是 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ICommon/GetCropTargetTree", ReplyAction="http://tempuri.org/ICommon/GetCropTargetTreeResponse")] System.IAsyncResult BeginGetCropTargetTree(string cropClassCode, KB.DSN.Entity.UserInfo userInfo, System.Guid userID, System.AsyncCallback callback, object asyncState);
至少输入参数都在begin方法中,可是这几天我发现更新引用之后,输入参数都放在了request类中,而且Guid都变成了string了,集合都变成数组了。不知道和那里的设置被修改有关系呢?还是和类库之间的引用有关系呢?









