I am trying to extract data from the results of a webservice call.
There are 2 nodes, the first with the field description and the second
with the actual data. How would I extract the first and last name and
store it in a variable?

Here is a shortened version of the results (full results in attached
trace):

<nds dtdversion="2.0">
<source>
<product build="20090519_235451" instance="SPML"
version="3.5.4">Identity Manager Driver for SOAP</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<GetUserProfileResponse xmlns="http://Eprise"
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">
<GetUserProfileResult>
<ErrorString/>
<ErrorNum>1</ErrorNum>
<Data>
<ArrayOfString>
<string>OBJECTID</string>
<string>USERGUID</string>
<string>LOGINID</string>
<string>FKUSERID</string>
<string>FIRST_NAME</string>
<string>MIDDLE_INITIAL</string>
<string>MIDDLE_NAME</string>
<string>LAST_NAME</string>
</ArrayOfString>
<ArrayOfString>
<string>6771</string>
<string>97ffcadd-121e-4957-87a63c67e0c56185</string>
<string>Indiana.Testing</string>
<string/>
<string>Indiana</string>
<string/>
<string/>
<string>Testing</string>
</ArrayOfString>
</Data>
</GetUserProfileResult>
</GetUserProfileResponse>
</output>
</nds>

I've tried various combinations and here is my latest attempt:

<rule>
<description>Call GetUserProfile</description>
<conditions/>
<actions>
<do-set-local-variable name="LV-RCGetUserProfile">
<arg-node-set>
<token-xml-parse>
<token-global-variable name="RCGetUserProfile"/>
</token-xml-parse>
</arg-node-set>
</do-set-local-variable>
<do-set-local-variable name="LV-UserData" scope="policy">
<arg-node-set>
<token-xpath
expression="query:query($destQueryProcessor,$LV-RCGetUserProfile)"/>
</arg-node-set>
</do-set-local-variable>
<do-set-local-variable name="LV-AllData" scope="policy">
<arg-node-set>
<token-xpath expression="$LV-UserData//*[local-name() =
'ArrayOfString']"/>
</arg-node-set>
</do-set-local-variable>
<do-for-each>
<arg-node-set>
<token-local-variable name="LV-AllData"/>
</arg-node-set>
<arg-actions>
<do-set-local-variable disabled="true" name="LV-IndvidualData">
<arg-string>
<token-xpath expression="$current-node//string[1]/text()"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="LV-IndividualData" scope="policy">
<arg-node-set>
<token-xpath expression="$LV-AllData//*[local-name() =
'string']"/>
</arg-node-set>
</do-set-local-variable>
<do-trace-message level="3">
<arg-string>
<token-text xml:space="preserve">The user data is:
</token-text>
<token-local-variable name="LV-IndvidualData"/>
</arg-string>
</do-trace-message>
</arg-actions>
</do-for-each>
</actions>
</rule>

Any help would be greatly appreciated!

Cindy


+----------------------------------------------------------------------+
|Filename: output.txt |
|Download: http://forums.novell.com/attachment....achmentid=4096 |
+----------------------------------------------------------------------+

--
SyncUp
------------------------------------------------------------------------
SyncUp's Profile: http://forums.novell.com/member.php?userid=55472
View this thread: http://forums.novell.com/showthread.php?t=404431