I have a WSDL file from a published ASMX web service. That I then creates a service layout that mimics a real service for testing purposes.
From WSDL, I used SvcUtil.exe to generate the code. Apparently, it also generates a server-side interface.
Well, the problem is that it creates very short interfaces. For example, the int Add(int, int) method is displayed in the generated .cs file as AddResponse Add(AddRequest) . AddRequest and AddResponse have AddRequestBody and AddRequestResponse and so on.
The problem is that for implementation, I need to create body and response instances for each method, even when I just want to return a simple int result.
Why can't it correctly generate the method signature? Is there a better way to create WCF-side interfaces / contracts from WSDL?
source share