title: Using svcutil to generate xsd files for client proxy
body: <p>I am trying to use Svcutil to export metadata for proxy generation off a locally hosted service. I dont want to go into visual studio and click 'Add service reference' as this is a learning exercise on my part(!)</p>
  
  <p>I am using svcutil as follows: </p>
  
  <blockquote>
    <p>Svcutil /d:c:\temp /t:metadata <a href="http://localhost/IISCalculatorService/service.svc" rel="nofollow">http://localhost/IISCalculatorService/service.svc</a></p>
  </blockquote>
  
  <p>This then generates two WSDL files, calculatorservice.wsdl and tempuri.org.wsdl. However I was expecting it to generate two .XSD files as well. Without these .XSD files I cant use svcutil to then generate the client code.</p>
  
  <p>Am I missing something in my use of svcutil or is my understading fauly? Any help appreciated.</p>
  
  <p>Here's the service's web.config</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
      &lt;system.web&gt;
          &lt;compilation debug="true" targetFramework="4.0"/&gt;
      &lt;/system.web&gt;
    &lt;system.serviceModel&gt;
          &lt;behaviors&gt;
              &lt;serviceBehaviors&gt;
                  &lt;behavior&gt;
            &lt;serviceMetadata httpGetEnabled="true"/&gt;
                      &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt;
                  &lt;/behavior&gt;
              &lt;/serviceBehaviors&gt;
          &lt;/behaviors&gt;
          &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true"/&gt;
          &lt;services&gt;
              &lt;service name="CalculatorService.Calculator"&gt;
                  &lt;endpoint address="" binding="basicHttpBinding" contract="CalculatorService.Contracts.ICalculator" /&gt;
          &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
              &lt;/service&gt;
          &lt;/services&gt;
      &lt;/system.serviceModel&gt;
      &lt;system.webServer&gt;
          &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
      &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>