WCF Service Datacontract got replaced with OperationContract name -


after adding wcf website data contract got replaced operation contract. how code 2

code1

[operationcontract(action = "http://tempuri.org/idocument/getfile", replyaction = "http://tempuri.org/idocument/getfileresponse")]              [xmlserializerformat(supportfaults = true)]              getfileresponse getfile(getfilerequest request); 

code2

 [operationcontract(action = "http://tempuri.org/idocument/getfile", replyaction = "http://tempuri.org/idocument/getfileresponse")]         appfile getfile(appfile objfile); 


Comments