title: WSDL-first approach: How to specify different names for wsdl:port and wsdl:binding?
body: <p>I am following WSDL-first (provided by our client) approach for developing WCF service but WSDLs generated from my wcf service is slightly different from WSDL provided to me by our client and because of this mismatch, client is facing difficulties to make a call to my service. </p>
  
  <p>Client provided wsdl:</p>
  
  <p><code>&lt;wsdl:service name='CheckoutService'&gt;
   &lt;wsdl:port binding='tns:CheckoutBinding' name='CheckoutServicePort'&gt;
    &lt;soap:address location='place holder to service uri' /&gt;
   &lt;/wsdl:port&gt;
  &lt;/wsdl:service&gt;
  </code></p>
  
  <p><br></p>
  
  <p>WSDL generated from wcf service: </p>
  
  <p><code>
  &lt;wsdl:service name="CheckoutService"&gt;
   &lt;wsdl:port binding="tns:CheckoutBinding" name="CheckoutBinging"&gt;
    &lt;soap:address location="place holder to service uri" /&gt;
   &lt;/wsdl:port&gt;
  &lt;/wsdl:service&gt;</code></p>
  
  <p>and, my service settings are as follows:</p>
  
  <p><code>&lt;endpoint name="CheckoutBinding" address="" binding="basicHttpBinding" bindingName="CheckoutServicePort" bindingConfiguration="basicHttpBinding" bindingNamespace="&lt;&lt;namespace&gt;&gt;" contract="&lt;&lt;contractname&gt;&gt;" /&gt;
  </code></p>
  
  <p>I have used WSCF.Blue for generating server-stub code from the client provided wsdl and made minor changes in the generated code to emit WSDL exactly same as the one provided by client but i am not getting any idea about what change to make in the config file or in generated code to get the same "wsdl:port/@name" as in the client provided wsdl file. </p>
  
  <p>As per this <a href="http://msdn.microsoft.com/en-us/library/aa738723.aspx">url</a>, serviceendpoint name property is mapped to wsdl:port/@name and wsdl:binding/@name. Based on this, endpoint/@name attribute value in my config file is mapped to wsdl:port/@name and wsdl:binding/@name but i want different names to be mapped to wsdl:port/@name and wsdl:binding/@name attributes. </p>
  
  <p>Kindly help me in achieving this.</p>