title: Setting the original WSDL with externalMetadataLocation doesn't work
body: <p>I'm building a WCF web service inside a Web Application with C#, and since I need to include schema validation for some Xml parameters I want to set a custom wsdl for the service where I use <code>&lt;xs:include schemaLocation="&lt;schemafilename&gt;.xsd"/&gt;</code> inside the <code>&lt;wsdl:types&gt;</code> node.</p>
  
  <p>I've learned that the place to do this is</p>
  
  <pre><code>&lt;serviceMetadata externalMetadataLocation="&lt;wsdlfilename&gt;.wsdl"/&gt;
  </code></pre>
  
  <p>but I can't get it to work. What baffles me is that it doesn't work even if I let the service generate its own wsdl (that is, not setting the attribute), access the generated metadata through <code>&lt;serviceurl&gt;/&lt;servicename&gt;.svc?wsdl</code>, save it to a file and then set this file as the externalMetadataLocation (using <code>..\&lt;wsdlfilename&gt;.wsdl</code>). WcfTestClient gives me this:</p>
  
  <pre><code>Warning: No code was generated.If you were trying to generate a client, this could be
  because the metadata documents did not contain any valid contracts or servicesor
  because all contracts/services were discovered to exist in /reference assemblies.
  Verify that you passed all the metadata documents to the tool.Warning: If you would
  like to generate data contracts from schemas make sure to use the /dataContractOnly
  option.
  </code></pre>
  
  <p>Sometimes it gives me more complicated errors, like</p>
  
  <pre><code>Error: Cannot import wsdl:port
  Detail: Cannot find definition for http://tempuri.org/:BasicHttpBinding_IProcessi.  Service Description with namespace http://tempuri.org/ is missing.Parameter name: name
  XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.archinet.it/HRSuite/Processi/']/wsdl:service[@name='Processi']/wsdl:port[@name='BasicHttpBinding_IProcessi']
  
  Error: Cannot import wsdl:portType
  Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
  
  Error: Schema with target namespace 'http://www.archinet.it/HRSuite/Processi/' could not be found.
  XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.archinet.it/HRSuite/Processi/']/wsdl:portType[@name='IProcessi']
  </code></pre>
  
  <p>I'm not really all that skilled with xml namespaces yet, so it might as well be something about them, but I've tried both with and without namespaces, so I'm at a loss</p>
  
  <p>Thank you</p>