Hi,

We have a SOAP driver which returns a status document depending on the
success of the event. I'm trying to extract the src-dn value from the
operation-data element to use afterwards on the subscriber channel.

I think this should be very simple, but I'm struggling to get the value
into a local variable. All the approaches i've tried so far have failed.

an example returned doc from the Shim is below:

<nds dtdversion="2.0">
<source>
<product build="20120601_162440" instance="Driver"
version="3.5.7">Identity Manager Driver for SOAP</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<update-bor>
<patron-id>xxxxxxx</patron-id>
<error>Cannot Insert z303. Match found for ID: xxxxxxx.</error>
<error>Cannot Insert z304. Match found for ID: xxxxxxx.</error>
<error>Cannot update / delete z305. No match found for ID:
xxxxxxx.</error>
<table>z303-user record</table>
<num-of-new-rec-inserted>01</num-of-new-rec-inserted>
<num-of-updated-rec>00</num-of-updated-rec>
<num-of-deleted-rec>00</num-of-deleted-rec>
<table>z308-login record</table>
<num-of-new-rec-inserted>01</num-of-new-rec-inserted>
<num-of-updated-rec>00</num-of-updated-rec>
<num-of-deleted-rec>00</num-of-deleted-rec>
<table>z304-address record</table>
<num-of-new-rec-inserted>01</num-of-new-rec-inserted>
<num-of-updated-rec>00</num-of-updated-rec>
<num-of-deleted-rec>00</num-of-deleted-rec>
<table>z305-bor record</table>
<num-of-new-rec-inserted>01</num-of-new-rec-inserted>
<num-of-updated-rec>00</num-of-updated-rec>
<num-of-deleted-rec>00</num-of-deleted-rec>
<session-id>XVEUFD9H3K2PIDKVH3J5CVJBARNXD7H3I721ECSFMVNTQ1E 8PN</session-id>
</update-bor>
</output>
<operation-data parent-node-1="addResponse">
<return-to-me cached-time="20150812152947.191Z" class-name="User"
command="add"
event-id="isls-ppidm1#20150812152947#99#1:ba2b2824-69e5-403d-4288-24282bbae569"
qual
ified-src-dn="O=UNI\OU=student\CN=xxxxxxx"
src-dn="\UAT-UNI-URS\UNI\student\xxxxxxx" src-entry-id="161662"
timestamp="0#0"/>
</operation-data>
</nds>

I've tried using the XPATH: "self::status/operation-data/@src-dn",
"//operation-data/@src-dn", "operation-data/@src-dn" but all of these
return a blank value.

Am I missing something, or do I need another approach to get the above
src-dn into a variable I can then manipulate using the policy builder?

Thanks in advance


--
Jevans78
------------------------------------------------------------------------
Jevans78's Profile: https://forums.netiq.com/member.php?userid=7684
View this thread: https://forums.netiq.com/showthread.php?t=54040