title: How do you share WCF WSDL and XSD's to a client without access to the service (yet)?
body: <p>I tried to generate the WSDL and then each XSD found within the WSDL manually with a client. The service is only on my localhost at the moment, and hasn't been published yet.</p>
  
  <p>The client is getting the following errors:</p>
  
  <blockquote>
    <p>The document was understood, but it could not be processed. 
    The WSDL document contains links that could not be resolved. 
    There was an error downloading 'http://localhost:xxxx/MyService.svc?xsd=xsd0'. 
    Unable to connect to the remote server No connection could be made because the
    target machine actively refused it 127.0.0.1:xxxx</p>
  </blockquote>
  
  <p>How should the services WSDL and XSD's be generated and shared so they can begin coding the client (without accessing the service atm?</p>
  
  <p><strong>Edit</strong>
  The issues relate to these in the WSDL/XSD</p>
  
  <p>WSDL</p>
  
  <pre><code>&lt;xsd:schema targetNamespace="http://tempuri.org/Imports"&gt;
      &lt;xsd:import schemaLocation="http://localhost:xxxx/MyService.svc?xsd=xsd0" 
             namespace="http://tempuri.org/"/&gt;
      &lt;xsd:import schemaLocation="http://localhost:xxxx/MyService.svc?xsd=xsd1"  
             namespace="http://schemas.microsoft.com/2003/10/Serialization/"/&gt;
      &lt;xsd:import schemaLocation="http://localhost:xxxx/MyService.svc?xsd=xsd2" 
             namespace="**MYNAMESPACE**"/&gt;
  &lt;/xsd:schema&gt;
  </code></pre>
  
  <p>XSD</p>
  
  <pre><code>&lt;xs:import schemaLocation="http://localhost:xxxx/MyService.svc?xsd=xsd1" 
    namespace="http://schemas.microsoft.com/2003/10/Serialization/"/&gt;
  </code></pre>
  
  <p><strong>Edit 2:</strong>
  Thanks to <code>@The Indian Programmmer</code> I was able to generate a proxy class to program against with this command:</p>
  
  <p><code>"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\svcutil.exe" -noconfig -namespace:*,SERVICE.INTERFACE.NAMESPACE -serializer:datacontractserializer https://My-PC/SvrLocation/MyService.svc?wsdl</code> 
  (hosted in local IIS) </p>