title: Siebel WSDL and svcutil
body: <p>I want to make a C# client for a siebel product and it seems that they are not very friend.</p>
  
  <p>I have this errors when I run </p>
  
  <pre><code>svcutil.exe siebel.wsdl
  </code></pre>
  
  <blockquote>
    <p>Microsoft (R) Service Model Metadata Tool [Microsoft (R) Windows (R)
    Communication Foundation, Version 4.6.1055.0] Copyright (c) Microsoft
    Corporation.  All rights reserved.</p>
    
    <p>Error: There was an error verifying some XML Schemas generated during
    export: The global element
    '<a href="http://mydomain.tld/xml/ListData:ListOfData" rel="nofollow noreferrer">http://mydomain.tld/xml/ListData:ListOfData</a>' has already been
    declared.</p>
    
    <p>Error: There was an error verifying some XML Schemas generated during
    export: The complexType
    '<a href="http://mydomain.tld/xml/ListData:ListOfDataTopElmt" rel="nofollow noreferrer">http://mydomain.tld/xml/ListData:ListOfDataTopElmt</a>' has already been
    declared.</p>
    
    <p>Error: There was an error verifying some XML Schemas generated during
    export: The complexType '<a href="http://mydomain.tld/xml/ListData:ListOfData" rel="nofollow noreferrer">http://mydomain.tld/xml/ListData:ListOfData</a>'
    has already been declared.</p>
    
    <p>Error: There was an error verifying some XML Schemas generated during
    export: The complexType '<a href="http://mydomain.tld/xml/ListData:Data" rel="nofollow noreferrer">http://mydomain.tld/xml/ListData:Data</a>' has
    already been declared.</p>
  </blockquote>
  
  <p>Opening in SoapUI and checking WSDL content I have this:</p>
  
  <p><a href="https://i.stack.imgur.com/QuNwS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QuNwS.png" alt="enter image description here"></a></p>
  
  <p>And for each ListOfData I have this line:</p>
  
  <pre><code>&lt;xsd:element name="ListOfData" type="xsdLocal3:ListOfData"/&gt;
  
  &lt;xsd:element name="ListOfData" type="xsdLocal6:ListOfData"/&gt;
  
  &lt;xsd:element name="ListOfData" type="xsdLocal5:ListOfData"/&gt;
  
  &lt;xsd:element name="ListOfData" type="xsdLocal1:ListOfData"/&gt;
  </code></pre>
  
  <p>How can I make it work nicely with svcutil?</p>
  
  <p>I'm not a SOAP/WSDL expert at all, let me know if you need more information.</p>
  
  <p>Thanks</p>