Greetings.
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:
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Provisioning.Client;
using System.Xml;
namespace MPSClient
{
public class MPSInvoker
{
public 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\">" +
"<procedure>" +
" <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>" +
"</procedure>" +
"</request>";
xmlrequest.LoadXml(XMLString);
XmlDocument answer = wrappme.SubmitRequest(xmlrequest, true);
return answer;
}
}
}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.