Hello I'm working on a SOAP driver and I'm trying to create an
association after a user is created on the target system.
The problem is that I don't get any association but not even an error.

Reading the manuals and on the forum this is what I did:

in the sub-ots-SPMLOutputTransform inside the template that match "add"
I added those lines (I don't know how to retrieve event-id and
src-entry-id, so I setted them to 0 and I don't know if it is right).


>
> <operation-data parent-node-1="addResponse">
> <return-to-me command="add" event-id="0" src-entry-id="0"
> CN="{add-attr[@attr-name='userName']/value}"
> src-dn="{add-attr[@attr-name='dn-sorgente']/value}" >
> <!--<xsl:apply-templates select="@*"/> -->
> </return-to-me>
> </operation-data>
>


And inside the pub-its-SPMLInputTransform I created the following
template

>
> <xsl:template match="output">
>
> <xsl:variable name="dn" select="//return-to-me/@src-dn"/>
> <xsl:variable name="key" select="//return-to-me/@CN"/>
> <xsl:variable name="command" select="//return-to-me/@command"/>
> <xsl:variable name="code" select="//multiRef/codice/node()"/>
>
>
> <xsl:variable name="eventID" select="//return-to-me/@event-id"/>
> <xsl:variable name="entryID" select="//return-to-me/@src-entry-id"/>
>
>
>
> <xsl:message>dn <xsl:value-of select="$dn"/></xsl:message>
> <xsl:message>key <xsl:value-of select="$key"/></xsl:message>
> <xsl:message>code <xsl:value-of select="$code"/></xsl:message>
> <xsl:message>command <xsl:value-of select="$command"/></xsl:message>
>
> <xsl:if test="$command = 'add' and $code = '0000'">
>
> <add-association>
> <xsl:attribute name="dest-dn">
> <xsl:value-of select="$dn"/>
> </xsl:attribute>
> <xsl:attribute name="event-id">
> <xsl:value-of select="$eventID"/>
> </xsl:attribute>
> <xsl:attribute name="dest-entry-id">
> <xsl:value-of select="$entryID"/>
> </xsl:attribute>
> <xsl:value-of select="$key"/>
> </add-association>
> </xsl:if>
> </xsl:template>
>



Here it is the log output:

>
>
> [12/04/09 15:15:53.423]:SOAP ST:Applying XSLT policy:
> %+C%14Cpub-its-SPMLInputTransform%-C.
> [12/04/09 15:15:53.425]:SOAP ST:Policy returned:
> [12/04/09 15:15:53.430]:SOAP ST:
> <nds dtdversion="2.0">
> <source>
> <product build="20090519_235451" instance="SOAPLuca"
> version="3.5.4">Identity Manager Driver for SOAP</product>
> <contact>Novell, Inc.</contact>
> </source>
> <add-association dest-dn="\***\***\Users\Interni\Pippo.Rosa"
> dest-entry-id="0" event-id="0">Pippo.Rosa</add-association>
> </nds>
> [12/04/09 15:15:53.429]:SOAP ST:Applying policy:
> %+C%14Cpub-itp-SpecialAttributeHandling%-C.
> [12/04/09 15:15:53.434]:SOAP ST:Policy returned:
> [12/04/09 15:15:53.435]:SOAP ST:
> <nds dtdversion="2.0">
> <source>
> <product build="20090519_235451" instance="SOAPLuca"
> version="3.5.4">Identity Manager Driver for SOAP</product>
> <contact>Novell, Inc.</contact>
> </source>
> <add-association dest-dn="\***\***\Users\Interni\Pippo.Rosa"
> dest-entry-id="0" event-id="0">Pippo.Rosa</add-association>
> </nds>
> [12/04/09 15:15:53.438]:SOAP ST:Applying policy:
> %+C%14Cpub-itp-EmailOnFailedPasswordSub%-C.
> [12/04/09 15:15:53.439]:SOAP ST:Policy returned:
> [12/04/09 15:15:53.435]:SOAP ST:
> <nds dtdversion="2.0">
> <source>
> <product build="20090519_235451" instance="SOAPLuca"
> version="3.5.4">Identity Manager Driver for SOAP</product>
> <contact>Novell, Inc.</contact>
> </source>
> <add-association dest-dn="\***\***\Users\Interni\Pippo.Rosa"
> dest-entry-id="0" event-id="0">Pippo.Rosa</add-association>
> </nds>
> [12/04/09 15:15:53.442]:SOAP ST:Applying schema mapping policies to
> input.
> [12/04/09 15:15:53.440]:SOAP ST:Applying policy:
> %+C%14CMappingRule%-C.
> [12/04/09 15:15:53.440]:SOAP ST:Resolving association references.
> [12/04/09 15:15:53.442]:SOAP ST:No <output> tag in returned document.
> [12/04/09 15:15:53.446]:SOAP ST:End transaction.
>



Thanks in advance.
Luca Muliere


--
luca982
------------------------------------------------------------------------
luca982's Profile: http://forums.novell.com/member.php?userid=30673
View this thread: http://forums.novell.com/showthread.php?t=394872