WCF Service Datacontract被OperationContract名称取代

时间:2016-08-08 15:18:43

标签: wcf datacontract operation-contract

将我的wcf添加到网站后,数据合同被替换为操作合同。如何回到代码2

CODE1

[OperationContract(Action = "http://tempuri.org/IDocument/GetFile", ReplyAction = "http://tempuri.org/IDocument/GetFileResponse")] 
            [XmlSerializerFormat(SupportFaults = true)] 
            GetFileResponse GetFile(GetFileRequest request);

码2

 [OperationContract(Action = "http://tempuri.org/IDocument/GetFile", ReplyAction = "http://tempuri.org/IDocument/GetFileResponse")]
        AppFile GetFile(AppFile objFile);

0 个答案:

没有答案