MPS Exchange and Active Directory API WSDL?

Last post 11-17-2009 7:00 PM by Markus OReilly. 3 replies.

Sort Posts:

  • MPS Exchange and Active Directory API WSDL?

    11-02-2009, 5:48 PM

    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?

    • the Exchange Provider API (http://technet.microsoft.com/en-us/library/dd278648.aspx)
    • and/or the Active Directory API (http://technet.microsoft.com/en-us/library/dd252243.aspx).

    Thanks

  • Re: MPS Exchange and Active Directory API WSDL?

    11-15-2009, 9:22 AM
    • Member
      21 point Member
    • apoloduvalis
    • Member since 08-10-2009, 6:32 PM
    • Posts 8

    I am exactly in the same situation. However I think the answer should be around here:

    http://technet.microsoft.com/en-us/library/dd278969.aspx

    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: 

    http://codeconnect.net/asp-net-forum.provisioning_system_mps/mps-client-wrapper

    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.

    Kind regards. 

    Filed under: , ,
  • Re: MPS Exchange and Active Directory API WSDL?

    11-17-2009, 12:31 AM
    Answer
    • Member
      21 point Member
    • apoloduvalis
    • Member since 08-10-2009, 6:32 PM
    • Posts 8


    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.

    Filed under: , ,
  • Re: MPS Exchange and Active Directory API WSDL?

    11-17-2009, 7:00 PM

    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!

Page 1 of 1 (4 items)