Hi All

I seem to be having some problems with the SOAP driver.
I see this in the error file:

Code:
--------------------
<nds dtdversion="2.0">
<source>
<product build="20080710_082352" instance="SiebelDSML" version="3.5.3">Ident
ity Manager Driver for SOAP</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<add class-name="" event-id="" src-dn="cn=cjhones,ou=users.o=vodacom">
<association>cn=cjhones,ou=users.o=vodacom</association>
<operation-data>
<return-to-me command="add" dn="cn=cjhones,ou=users.o=vodacom"/>
</operation-data>
</add>
</input>
</nds>
--------------------


then ->

Code:
--------------------
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.0.4294">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<status level="error">Code(-9122) Error in null : A value is required for at
tribute 'class-name' on element 'add'.<operation-data>
<return-to-me command="add" dn="cn=cjhones,ou=users.o=vodacom"/>
</operation-data>
<application>DirXML</application>
<module>SiebelDSML</module>
<object-dn>cn=cjhones,ou=users.o=vodacom</object-dn>
<component>Publisher</component>
</status>
</output>
</nds>
--------------------


I seem to have found the problem with the XSLT document here
->


Code:
--------------------
<xsl:template match="dsml:addRequest">
<xsl:message>Input Add: Convert DSML to XDS</xsl:message>
<xsl:variable name="dn-ldap" select="@dn"/>
<add>
<xsl:attribute name="class-name">
<!-- Use the last objectclass for the classname -->
<xsl:value-of select="dsml:attr[@name='objectclass'][last()]/dsml:value"/>
--------------------


So I changed it to this


Code:
--------------------
<xsl:template match="dsml:addRequest">
<xsl:message>Input: Convert DSML to XDS</xsl:message>
<xsl:variable name="dn-ldap" select="@dn"/>
<add>
<xsl:attribute name="class-name">
<!-- Use the last objectclass for the classname -->
<xsl:value-of select="attr[@name='objectclass'][last()]"/>

--------------------


This now gives me the class-name :-)

Has anyone seen this before? Is there something wrong with my input
DSML
->

Code:
--------------------
<?xml version="1.0" encoding="UTF-8"?>
<dsml:batchRequest xmlns:dsml="urnasis:names:tcSML:2:0:core" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<dsml:addRequest dn="cn=cjhones,o=test">

<attr name="objectclass"><value>top</value></attr>
<attr name="objectclass"><value>person</value></attr>
<attr name="objectclass"><value>organizationalPerson</value></attr>
<attr name="objectclass"><value>inetorgperson</value></attr>
<attr name="sn"><value>Johnson</value></attr>
<attr name="givenName"><value>cjhones</value></attr>
<attr name="title"><value>Software Design Engineer</value></attr>
</dsml:addRequest>

</dsml:batchRequest>
--------------------


I got it from here
'var/ndk/webBuildengine/tmp/viewable_samples/5b62431e-39ef-4ddf-b85b-1873a77c8185/xmlrequests/AddRequest.xml'
(http://developer.novell.com/document...quest.xml.html)
so I would assume it should work 'out of the box'


--
soan
------------------------------------------------------------------------
soan's Profile: http://forums.novell.com/member.php?userid=13391
View this thread: http://forums.novell.com/showthread.php?t=381974