I am facing problems trying to extract out the value of "USER NOT SIGNED
ON" inside the <n2:ErrorMessage> element in my policy.

Tried the following but not working:-
../output/*[local-name()='createUserResponse']/UsrAddRs/*[local-name()='Stat']/*[local-name()='ErrorMessage']/*[local-name()='ErrorMessage']")


<nds dtdversion="2.0">
<source>
<product build="20090519_235451"
instance="AMBG-IDV_TO_BANCS-CREATION" version="3.5.4">Identity Manager
Driver for SOAP</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<ns3:createUserResponse
xmlns:ns2="http://TCS.BANCS.Adapter/BANCSSchema"
xmlns:ns3="http://ambgBaNCS.TCS.com/webservice/CreateUserInterface/v1"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<UsrAddRs>
<ns2:Header>
<ns2:Filler1>0</ns2:Filler1>
<ns2:MsgLen>0</ns2:MsgLen>
<ns2:Filler2>00</ns2:Filler2>
<ns2:MsgType>0</ns2:MsgType>
<ns2:Filler3>147</ns2:Filler3>
<ns2:CycleNum>0</ns2:CycleNum>
<ns2:MsgNum>0</ns2:MsgNum>
<ns2:SegNum>0</ns2:SegNum>
<ns2:SegNum2>0</ns2:SegNum2>
<ns2:FrontEndNum>0</ns2:FrontEndNum>
<ns2:TerminalNum>0</ns2:TerminalNum>
<ns2:InstitutionNum>1</ns2:InstitutionNum>
<ns2:BranchNum>933</ns2:BranchNum>
<ns2:WorkstationNum>0</ns2:WorkstationNum>
<ns2:TellerNum>99999</ns2:TellerNum>
<ns2:TranNum>009998</ns2:TranNum>
<ns2:JournalNum>3264</ns2:JournalNum>
<ns2:RsHeaderDate>31102012</ns2:RsHeaderDate>
<ns2:Flag1>0</ns2:Flag1>
<ns2:Flag2>2</ns2:Flag2>
<ns2:Flag3>0</ns2:Flag3>
<ns2:Flag4>0</ns2:Flag4>
<ns2:Flag5>Y</ns2:Flag5>
<ns2:UUIDSOURCE>AMI</ns2:UUIDSOURCE>
<ns2:UUIDNUM>AMI31102012-24754</ns2:UUIDNUM>
<ns2:UUIDSEQNUM>1</ns2:UUIDSEQNUM>
<ns2:OutputType>01</ns2:OutputType>
</ns2:Header>
<ns2:Stat>
<ns2:ErrorMessage>
<ns2:SupOverRide>0</ns2:SupOverRide>
<ns2:ErrorCode>148</ns2:ErrorCode>
<ns2:ErrorMessage>USER NOT SIGNED ON</ns2:ErrorMessage>
</ns2:ErrorMessage>
</ns2:Stat>
</UsrAddRs>
</ns3:createUserResponse>
<operation-data parent-node-1="addResponse"
parent-node-2="errorResponse" role="" staffId="29070091"
transaction-type="create" userId="1" workflowRequestId=""
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<return-to-me class-name="User" command="add"
event-id="ambglx10#20121031083707#1#1"
qualified-src-dn="O=AMBG\OU=AMB40000007834000000800\OU=EMPLOYEE\ CN=29070091"
src-dn="\AMBG-IDV-DEV\AMBG\AMB40000007834000000800\EMPLOYEE\29070091 "
src-entry-id="53911"/>
</operation-data>
</output>
</nds>

Any expert here can help?

Thanks alot.


--
kaylayap
------------------------------------------------------------------------
kaylayap's Profile: https://forums.netiq.com/member.php?userid=2954
View this thread: https://forums.netiq.com/showthread.php?t=45067