I just did the download. It's not big. Not a lot of explanatory text that I've found yet, however; and the current (on-line) JNDI tutorial doesn't seem to cover DSML either.
Here's a bit fuller statement of what I'm doing. My immediate interest is to provide a web-services entry point to an LDAP directory (specifically, directory.gov) , which is already accessible via browser (http) and LDAP.
I thought first in terms of exposing methods (via SOAP) for all the common LDAP functions (starting with search) ; then I thought about how to represent the searchresults (java namingeumerations etc) in XML. Then I said "d'oh! that's probably been done!" So I checked up on DSML, which, in v2, does seem to do all that. I'm on Tomcat, so I checked on Axix for the SOAP engine. From what I've seen, I need my Java to provide Axis with a javabean or a simple type or array. A DSML BatchRequest or BatchResponse is not any of those, so I'm looking for the most painless way to serialize and deserialize between the DSML-defined structures and the corresponding Java JNDI objects (initialdircontext; searchresult, basicattributes, etc.) I'd prefer not to have to attempt an Axis custom serializer class (I'm not that skilled, and the docs are still "to come.") . I don't intend to write a W-S client at all (well, maybe as a demo): I'm just trying to add a WS port to provide a new way for whoever's interested to access the data in directory.gov.
BTW, I have a post into jndi-interest list at Sun to see if the Sun engineers or others there will identify a "no-brainer" way to combine their stuff with axis. I probably will avoid doing any actual hard thinking until I hear (or don't hear) from them.
Thanks again for the info & suggestions,
Martin
Anne Thomas Manes wrote:
Martin, Do you have a link to some documentation, or do I have to download it to see the contents of the package?I just looked through the DSMLv2 spec. It defines a SOAP binding, but it doesn't provide a WSDL portType or binding description (too bad). But it does provide XML Schemas for all the messages. It's not too hard to create the WSDL from that. Once you have a WSDL file, you ought to be able to just generate your client proxy. DSML requires that you use document/literal mode. Anne