Reason:
When
data is passed to an XML Web service it is sent in a request and when
it is returned it is sent in a response. Therefore, if an XML Web
service
contains two or more XML Web service methods with the same name, no
uniquely identification will be there. Hence it will produce error.
You should use OperationContract atribute "name" or simply rename one of the methods.
This is example from my current project (in Slovak language)
Code Snippet
- [OperationContract]
- APIVytvorDokumentResponse VytvorDokument(global::eDocsInterfaceCUD.CBO_API.CUD.MTOM.APIVytvorDokumentByteArrayRequest request);
-
[OperationContract(Name = "VytvorDokumentCezStream")] - APIVytvorDokumentResponse VytvorDokument(global::eDocsInterfaceCUD.CBO_API.CUD.MTOM.APIVytvorDokumentStreamRequest request);
Žiadne komentáre:
Zverejnenie komentára