title: Renaming Parts of a Service Reference
body: <p>I need to access a Java-based service which defines a <code>portType</code> element in the same namespace used by one of the schema files it imports. Unfortunately, that schema includes a <code>complexType</code> with the same name as the <code>portType</code>!</p>
  
  <p>The problem is that "Add Service Reference" uses the name of the <code>portType</code> to create the name of the service contract, and creates a <code>class</code> with the name of the <code>complexType</code> - and it creates them in the same .NET namespace. That doesn't work!</p>
  
  <p>Is there something I can do, either in the "Add Service Reference" dialog, or in the .svcmap file, to "rename" the service contract type?</p>
  
  <hr>
  
  <p>A closely related question is - is there something I could do about this if the <code>portType</code> and <code>complexType</code> were in different namespaces (as, IMHO, they <em>should</em> be)?</p>