title: use p6 web service in .net
body: <p>There are a lot of web services installed on Primavera P6.
  WSDL: ActivityCodeAssignment.wsdl</p>
  
  <p>Primary Key Field: A multi-part key comprised of the following elements:</p>
  
  <pre><code>ActivityObjectId
  ActivityCodeTypeObjectId
  </code></pre>
  
  <p>Target Namespace: <a href="http://xmlns.oracle.com/Primavera/P6/WS/ActivityCodeAssignment/V1" rel="nofollow">http://xmlns.oracle.com/Primavera/P6/WS/ActivityCodeAssignment/V1</a></p>
  
  <p>Default Transport URLs:</p>
  
  <pre><code>http://&lt;hostname&gt;:&lt;port number&gt;/p6ws/services/ActivityCodeAssignment?wsdl
  https://&lt;hostname&gt;:&lt;port number&gt;/p6ws/services/ActivityCodeAssignment?wsdl 
  </code></pre>
  
  <p>But if I input this on the web brower:
      <a href="http://my-machine:7005/p6ws/services/ActivityCodeAssignment?wsdl" rel="nofollow">http://my-machine:7005/p6ws/services/ActivityCodeAssignment?wsdl</a></p>
  
  <p>It shows, "No service was found."</p>
  
  <p>If I try to Add Service Reference in Visual Studio, it says.</p>
  
  <pre><code>There was an error downloading 'http://my-machine:7005/p6ws/services/ActivityCodeAssignment?wsdl'.
  The request failed with HTTP status 404: Not Found.
  Metadata contains a reference that cannot be resolved: 'http://my-machine:7005/p6ws/services/ActivityCodeAssignment?wsdl'.
  There was no endpoint listening at http://my-machine:7005/p6ws/services/ActivityCodeAssignment?wsdl that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
  The remote server returned an error: (404) Not Found.
  If the service is defined in the current solution, try building the solution and adding the service reference again.
  </code></pre>
  
  <p>Is P6 using some different web service?</p>