I'm working on a .NET WCF client for a Java web service. I can generate the .NET proxy classes successfully from the Java web service WSDL and call the service via proxy class. One problem is class duplication in proxy classes. Say we have two java web service: java_a and java_b, both reference a class common_class.
Now if I generate two .NET proxy classes for the two Java web service at client, say: proxy_a and proxy_b. Now in both proxy classes there is a class called common_class, one is proxy_a.common_class and another is proxy_b.common_class. I want to write some helper class for the two proxy classes at client side but it's hard to deal with the common_class. I have to write many duplication code to manipulate the two common_class which should not happen in my opinion. It should be possible to manually modify the proxy classes to extract the common_class but since I will have to update the proxy classes very often it will be very painful to do the manual job.
So my question is: how to avoid such class definition duplication when generating proxy classes?
Best regards, - Bruce
