Hi!

I'm working on a soap driver. The soap interface returns this
document:


Code:
--------------------

<nds dtdversion="2.0">
<source>
<product build="20070918_0808 " instance="Dashboard" version="3.5.2">Identity Manager Driver for SOAP</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<AddOrUpdateUserResponse xmlns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AddOrUpdateUserResult>true</AddOrUpdateUserResult>
<operation-data assoc-key="annasjovatsen" parent-node-1="AddOrUpdateUserResponse">
<return-to-me cached-time="20091130053130.570Z" class-name="User" command="add" event-id="oesmetalab#20091130053130#1#1" qualified-src-dn="O=rfk-meta\OU=Personer\OU=Ansatt\CN=annasjovatsen" src-dn="\RFK-LAB-TRE\rfk-meta\Personer\Ansatt\annasjovatsen" src-entry-\
id="76267" timestamp="1259559090#24"/>
</operation-data>
</AddOrUpdateUserResponse>
</output>
</nds>

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


And I have a XSLT policy that converts this to a status and add-assoc:


Code:
--------------------

<xsl:template match="AddOrUpdateUserResponse">
<xsl:message>Input: Convert Dashboard to XDS</xsl:message>
<xsl:variable name="dn" select="//return-to-me/@src-dn"/>
<xsl:variable name="eventID" select="//return-to-me/@event-id"/>
<xsl:variable name="entryID" select="//return-to-me/@src-entry-id"/>
<xsl:variable name="key" select="//operation-data/@assoc-key"/>
<xsl:variable name="code" select="//AddOrUpdateUserResult/node()"/>
<status>
<xsl:attribute name="event-id">
<xsl:value-of select="$eventID"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$code = 'true'">
<xsl:attribute name="level">success</xsl:attribute>
<xsl:text> User successfully created in Dashboard. Enjoy!</xsl:text>
</xsl:when>

<xsltherwise>
<!-- <xsl:call-template name="return-error-handler"/> -->
<xsl:attribute name="level">error</xsl:attribute>
<xsl:attribute name="type">app-general</xsl:attribute>
<xsl:text>
Something went wrong on this ~~~~ system.
</xsl:text>
</xsltherwise>
</xsl:choose>
</status>
<xsl:if test="$key and $code = 'true'">
<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>

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


The problem is that the xpath expression do not match
AddOrUpdateUserResponse since the element has namespaces. I can not
figure out how to fix this. Any suggestions?

--
Frode


--
fsjovatsen
------------------------------------------------------------------------
fsjovatsen's Profile: http://forums.novell.com/member.php?userid=9767
View this thread: http://forums.novell.com/showthread.php?t=393874