The title is not too clear, but let's try to explain this better.
Software A calls a web service WS. The function from WS returns a class of type MyClass. Software A happens to know exactly what MyClass is, because the definition is shared among A and WS. But simply returning MyClass from WS will not automatically map to the MyClass that A knows. Instead, it is mapped to a separate namespace.How can we change this, so that the type returned from WS is exactly the MyClass that is defined in A? 1. Go to the Solution Explorer and show hidden files 2. Go to Web References, and expand the web service. It will expand to three files: .disco, .wsdl and .map, which in turn expands to three other files. 3. Open the Reference.cs file. Add the using directive to include the namespace MyClass is in. Then, remove all the "public partial class"es that are conflicting with your classes. In our example, there will be a public partial class MyClass you need to remove. Pay attention not to remove too much code, at the end of the file there are still useful functions you should not delete!