It's impossible. What will the implementation look like? Should it just copy the implementation insert from the source class? If you want to expand methods as web services, you must put them in a class or interface with the ServiceContract attribute.
Suppose the source class of the service is as follows:
public class MyService : IServiceContract, IOtherInterface { ... public ObjectFromServiceAssembly MethodFromOtherInterface() { Console.WriteLine("Create instance of some object."); return new ObjectFromServiceAssembly(); } }
How would MethodFromOtherInterface look on the generated side of the proxy? It cannot just copy your implementation from the service side.
source share