Application programming interface for implementing directory service access using directory service markup language
First Claim
1. A computer-readable storage medium storing computer-executable instructions, that when executed by a computing device, cause the computing device to perform a method for generating and sending Directory Service Markup Language (DSML) requests to a DSML server that provides a directory service, the method comprising:
- calling, by the computing device, a constructor Application Programming Interface (API) function that constructs a DSML request object, the constructor API function defined in a DSML request document class, the DSML request object being an instance of the DSML request document class, the DSML request document class defining functions for building DSML request documents, the DSML request object representing a DSML request document;
in response to calling the constructor API function, receiving, by the computing device, the DSML request object;
calling, by the computing device, a function of the DSML request object that adds a DSML element to the DSML request document, the function being one of the functions defined by the DSML request document class; and
calling, by the computing device, a send API function that sends a request packet to a DSML server, the send API function defined in a connection API class, the request packet having the DSML request document as a payload under a networking protocol.
2 Assignments
0 Petitions
Accused Products
Abstract
A set of DSML application programming interface (DSML API) functions is provided to facilitate the implementation of DSML-based directory service access. The DSML API includes a DSML document API class for building or accessing a DSML payload, and a DSML connection API class that handles connection and transport to a DSML server. To access a directory service, the client calls functions of the DSML document API class to generate a DSML request payload, and calls functions of the DSML connection API to transport a packet with the DSML request payload according to a pre-selected connection protocol, such as SOAP, to the DSML server for forwarding to the directory service.
16 Citations
18 Claims
-
1. A computer-readable storage medium storing computer-executable instructions, that when executed by a computing device, cause the computing device to perform a method for generating and sending Directory Service Markup Language (DSML) requests to a DSML server that provides a directory service, the method comprising:
-
calling, by the computing device, a constructor Application Programming Interface (API) function that constructs a DSML request object, the constructor API function defined in a DSML request document class, the DSML request object being an instance of the DSML request document class, the DSML request document class defining functions for building DSML request documents, the DSML request object representing a DSML request document; in response to calling the constructor API function, receiving, by the computing device, the DSML request object; calling, by the computing device, a function of the DSML request object that adds a DSML element to the DSML request document, the function being one of the functions defined by the DSML request document class; and calling, by the computing device, a send API function that sends a request packet to a DSML server, the send API function defined in a connection API class, the request packet having the DSML request document as a payload under a networking protocol. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method for generating and sending Directory Service Markup Language (DSML) requests to a DSML server that provides a directory service, the method comprising:
-
calling, at a client application operating at a computing device, a constructor Application Programming Interface (API) function that constructs a DSML request object, the constructor API function defined in a DSML request document class, the DSML request object being an instance of the DSML request document class, the DSML request document class defining functions for building DSML request documents, the DSML request object representing a DSML request document; in response to calling the constructor API function, receiving, at the client application, the DSML request object; calling, at the client application, a function of the DSML request object that adds a DSML element to the DSML request document, the function being one of the functions defined by the DSML request document class; calling, at the client application, a connection class constructor function that constructs a connection object, the connection class constructor function defined in a connection API class, the connection API class defining functions for manipulating connections, the connection object being an instance of the connection API class, the connection object representing a connection under a networking protocol to the DSML server; calling, at the client application, a send function of the connection object, the send function being one of the functions defined by the connection API class, the send function sending a request packet to the DSML server, the request packet having the DSML request document as a payload under the networking protocol. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. A method comprising:
-
receiving, at a computing device, an invocation, by an application, of a Directory Service Markup Language (DSML) request constructor function defined in a document Application Programming Interface (API) class; in response to receiving the invocation of the DSML request constructor function, returning, by the computing device, to the application a first DSML request object that represents a first DSML request document; receiving, at the computing device, an invocation by the application of an add request function of the first DSML request object, in response to receiving the invocation of the add request function, automatically adding, at the computing device, to the first DSML request document a DSML add request element that specifies that an entry is to be added to a directory; receiving, at the computing device, an invocation by the application of a Hypertext Transfer Protocol (HTTP) connection constructor function defined in a connection API class, the invocation of the HTTP connection constructor function specifying a Uniform Resource Locator (URL) of a DSML server device; in response to receiving the invocation of the HTTP connection constructor function, returning, by the computing device, a HTTP connection object to the application; receiving, at the computing device, an invocation by the application of a begin session function of the HTTP connection object; in response to receiving the invocation of the begin session function, establishing, at the computing device, a session identifier; receiving, at the computing device, a first invocation by the application of a send request function of the HTTP connection object, the invocation of the send request function specifying the first DSML request object; in response to receiving the first invocation of the send request function; automatically modifying, by the computing device, the first DSML request document to include a session identifier element that specifies the session identifier; and after automatically modifying the first DSML request document, sending, by the computing device, a first Hypertext Transfer Protocol (HTTP) request that comprises the first DSML request document from the computing device to the DSML server device via a computer network; receiving, at the computing device, a HTTP response from the DSML server device, the HTTP response comprising a DSML response document that includes an add response element that indicates a result of the add request element; and returning, by the computing device, to the application a DSML response object that represents the DSML response document; receiving, at the computing device, an invocation by the application of a response element function of the DSML response object; in response to receiving the invocation of the response element function, returning, by the computing device, to the application an object that represents the add response element; after receiving the first invocation of the send request function, receiving, at the computing device, an invocation by the application of an end session function of the HTTP connection object; after receiving the invocation of the end session function, receiving, at the computing device, a second invocation by the application of the send request function of the HTTP connection object, the second invocation of the send request function specifying a second DSML request object that represents a second DSML request document; and in response to receiving the second invocation of the send request function and without automatically modifying the second DSML request document to include the session identifier element, sending a second HTTP request from the computing device to the DSML server device via the computer network, the second HTTP request comprising the second DSML request document. - View Dependent Claims (17, 18)
-
Specification