title: Active directory ADWS WSDL vs C# implementation
body: <p>So I'm trying to find a "Best" way to interact(<strong>create a interface</strong>) with Active Directory <strong>read/write</strong> mode.  So I'm deciding between this two aproaches: </p>
  
  <ol>
  <li>Try and use the ADWS. </li>
  <li>C# Implementation.</li>
  </ol>
  
  <p>Apparently for ADWS is not <a href="https://stackoverflow.com/questions/3966918/active-directory-web-services-adws-sdk">that</a> <a href="https://social.technet.microsoft.com/Forums/windowsserver/en-US/fcdb56de-2422-49ed-a7c1-093fa9542c60/adws-with-http-binding-and-access-from-a-java-client?forum=winserverDS" rel="nofollow noreferrer">easy</a> even though there is a full <a href="http://msdn.microsoft.com/en-us/library/dd304094.aspx" rel="nofollow noreferrer">WSDL</a> I'v not been able to locate it, to try to do some test via SOAPui...  </p>
  
  <p>Now fort the C# Implementation there are <a href="http://samirvaidya.blogspot.com/2012/06/using-active-directory-web-services-in.html" rel="nofollow noreferrer">few</a> <a href="http://www.codeproject.com/Articles/18102/Howto-Almost-Everything-In-Active-Directory-via-C" rel="nofollow noreferrer">implementations</a> 
  but still I'm not sure if its 100% doable to have full READ/WRITE to AD i.e. creating accounts users, query for users info, etc. from lets say REST WS.</p>
  
  <p>So My questions are </p>
  
  <ol>
  <li>Is there a way of getting a WSDL from the AD server so that I can use that as a starting point? ( I don't want to get me into PowerShell stuff or the like)  </li>
  <li>Are there any good articles for the latest versions C# ,libs, etc... to help me implement this? </li>
  <li>Is there a better way of doing this?</li>
  </ol>
  
  <p>As an example This is what we're trying to do:</p>
  
  <p><strong>Scenario 1:</strong></p>
  
  <ol>
  <li>Create a Web Service (INTERFACE) that expose AD information</li>
  <li>The Web Service could be REST or SOAP</li>
  <li>The WS should read/Query/Write the AD</li>
  <li>Any Application inside the network can consume the WS  </li>
  </ol>
  
  <p><strong>Scenario 2</strong> (What we currently plan to do):</p>
  
  <ol>
  <li>Sharepoint Reads AD Information</li>
  <li>Job should copy AD to DB</li>
  <li>Applications can read this data </li>
  <li>There should exist some replication between the DB and AD</li>
  </ol>
  
  <p>Any suggestions will be more than welcome  </p>
  
  <p><img src="https://i.stack.imgur.com/Wxqjf.png" alt="This is what I&#39;m trying to do "></p>
  
  <p>I'm Using server 2008R2 ,Sharepoint foundations 2010</p>