Last post Nov 17, 2009 07:00 PM by Markus OReilly
Nov 02, 2009 05:48 PM|Markus OReilly|LINK
I am currently waiting on someone else in my team to finish installing MPS and Exchange, but I need to start developing for it as soon as I can. Does anyone know where I can get the wsdls for these APIs?
mps hmc 4.5
Nov 15, 2009 09:22 AM|apoloduvalis|LINK
I am exactly in the same situation. However I think the answer should be around here:
Mi conclusion so far is that the APIs you have been reading are about how you should structure the XML request that you send to the MPS server. Once a sample of that XML request has been written and tested you need to write a C# program that uses the MPS
.NET Client Wrapper (http://technet.microsoft.com/en-us/library/dd278969.aspx) in order to send programmatically the text of the sample XML request. The closest sample piece of code I have
found to an example of this approach is this one:
Right now I'm trying this approach myself and I let you know if this actually works. If anybody else out there can help us to get to the right answer, I'll be so grateful.
Nov 17, 2009 12:31 AM|apoloduvalis|LINK
The approach I previously talked about worked. I suggest you write your own program to deal with the MPS server and then build your own webservice.
My piece of code is:
public class MPSInvoker
public XmlDocument doSomething()
Microsoft.Provisioning.Client.Wrapper.Request wrappme = new Microsoft.Provisioning.Client.Wrapper.Request();
XmlDocument xmlrequest = new XmlDocument();
xmlrequest = wrappme.BuildBaseRequest("Active Directory Provider", "Create Object");
String XMLString = "<request xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">" +
" <execute namespace=\"Active Directory Provider\" procedure=\"Create Object\" impersonate=\"1\">" +
" <executeData>" +
" <container>LDAP://AD01.concorde.com/CN=Users,DC=concorde,DC=com</container>" +
" <class>user</class>" +
" <name>CN=apoloduvalis</name>" +
" <properties>" +
" <property mode=\"update\" name=\"displayName\">apoloduvalis</property>" +
" <property mode=\"update\" name=\"givenName\">Apolo</property>" +
" <property mode=\"update\" name=\"sn\">Duvalis</property>" +
" <property mode=\"update\" name=\"sAMAccountName\">apoloduvalis</property>" +
" </properties>" +
" </executeData>" +
" <after source=\"executeData\" destination=\"data\" mode=\"insert\" />" +
" </execute>" +
XmlDocument answer = wrappme.SubmitRequest(xmlrequest, true);
In order to get the Microsoft.Provisioning.Client library, you need to install the MPS SDK and in your Visual Studio project to add a reference to the .NET library C:\Program Files\Microsoft Hosting\Development\References\MPFClientWrapper.dll
I hope this help.
Nov 17, 2009 07:00 PM|Markus OReilly|LINK
I've been able to get the webservices working (we've since gotten everything installed), but I am having a really hard time finding any documentation on the format of the "container" or "ldap path" that most/all of the Active Directory functions require.
I"ll probably post another question in a different post (http://forums.asp.net/t/1494557.aspx). Thanks for the help!