title: Identical Types In Separate Web Services
body: <p>I have a similar problem as this <a href="https://stackoverflow.com/questions/209224/-net-consuming-web-service-identical-types-in-two-different-services">question</a>. I have multiple web services that I am consuming with WCF, which all share types. The services themselves are written in Java and I do not have access to them. The shared types have the same signatures, but <code>svcutil.exe</code> gives this error when running:</p>
  
  <pre><code>Error: There was a validation error on a schema generated during export:
      Source:
      Line: 8 Column: 3
     Validation Error: The complexType 'http://MyServer.MyService:CommonType' has already been declared.
  </code></pre>
  
  <p>With <code>CommonType</code> having the same signature in both web services being consumed. Here's how I'm calling <code>svcutil</code>:</p>
  
  <pre><code>svcutil.exe /o:GeneratedServices.cs /n:*,MyNamespace.Generated http://MyServer.MyService1?WSDL http://MyServer.MyService2?WSDL
  </code></pre>
  
  <p>I know that <code>wsdl.exe</code> has <code>/mergeTypes</code> flag, which works for these services, but there are some options on <code>svcutil.exe</code> that I'd really like to use. I did have someone demonstrate that it is possible to me, however the backend was also using .NET and WCF, and I've been unsuccessful with the Java backend I'm using.</p>