Hi,

I am using SOAP driver for connecting to mainframe applications. I get
sometime error when I modify the authorizations attribute in the target
system and I want to capture the error and send out an email to
development/admin team.

I tried to capture it from *Input Transformation Policy* like the below
rule. but i am able to capture only if its error, could not get the
error message, source dns etc.

Rules is attached below. And the driver output is attached in a file
(soap-driver-output.txt). From the driver output i want to caputre the
errorMessage, src-dn and send in email.
Please help.


<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE policy PUBLIC
"policy-builder-dtd" "C:\Program Files
(x86)\Novell\Designer\Designer\plugins\com.novell. idm.policybuilder_4.0.0.201404231247\DTD\dirxmlscr ipt4.0.2.dtd"><policy
xmlns:es="http://www.novell.com/nxsl/ecmascript">
<rule>
<description>Error-Hanling</description>
<comment xml:space="preserve">Error-Hanling</comment>
<conditions>
<and>
<if-xpath op="true">@level='error'</if-xpath>
</and>
</conditions>
<actions>
<do-for-each>
<arg-node-set>
<token-xpath expression="self::status"/>
</arg-node-set>
<arg-actions>
<do-trace-message>
<arg-string>
<token-xpath expression="$current-node"/>
</arg-string>
</do-trace-message>
<do-trace-message>
<arg-string>
<token-xpath expression="$current-node/@level"/>
</arg-string>
</do-trace-message>
<do-trace-message>
<arg-string>
<token-xpath expression="$current-node/@type"/>
</arg-string>
</do-trace-message>
<do-trace-message>
<arg-string>
<token-xpath expression="$current-node/@errorMessage"/>
</arg-string>
</do-trace-message>
<do-trace-message>
<arg-string>
<token-xpath expression="$current-node/@qualified-src-dn"/>
</arg-string>
</do-trace-message>
</arg-actions>
</do-for-each>
<do-for-each>
<arg-node-set>
<token-xpath expression="self::return-to-me"/>
</arg-node-set>
<arg-actions>
<do-trace-message>
<arg-string>
<token-xpath expression="$current-node"/>
</arg-string>
</do-trace-message>
<do-trace-message>
<arg-string>
<token-text xml:space="preserve">=================== DDDD
KKKKKKKK KK =========================</token-text>
</arg-string>
</do-trace-message>
<do-trace-message name="lv-pub-its-ErrorResponseEventID"
scope="driver">
<arg-string>
<token-xpath expression="$current-node/@qualified-src-dn"/>
</arg-string>
</do-trace-message>
<do-trace-message name="lv-pub-its-ErrorResponseEventID"
scope="driver">
<arg-string>
<token-xpath expression="$current-node/@class-name"/>
</arg-string>
</do-trace-message>
<do-trace-message name="lv-pub-its-ErrorResponseEventID"
scope="driver">
<arg-string>
<token-xpath expression="$current-node/@src-dn"/>
</arg-string>
</do-trace-message>
<do-trace-message name="lv-pub-its-ErrorResponseEventID"
scope="driver">
<arg-string>
<token-xpath expression="$current-node/@errorMessage"/>
</arg-string>
</do-trace-message>
<do-trace-message>
<arg-string>
<token-text xml:space="preserve">=================== DDDD
KKKKKKKK KK =========================</token-text>
</arg-string>
</do-trace-message>
</arg-actions>
</do-for-each>
<do-send-email-from-template notification-dn="Security\Default
Notification Collection" template-dn="Security\Default Notification
Collection\Driver error handling - CICS">
<arg-string name="to">
<token-global-variable name="Errorhandling-MailTo"/>
</arg-string>
<arg-string name="error-text1">
<token-text xml:space="preserve">Driver processing Error - Text
1</token-text>
</arg-string>
<arg-string name="from">
<token-text xml:space="preserve">idm@Abc.com</token-text>
</arg-string>
</do-send-email-from-template>
</actions>
</rule>
</policy>


Thanks
-dk


+----------------------------------------------------------------------+
|Filename: soap-driver-output.txt |
|Download: https://forums.netiq.com/attachment....tachmentid=286 |
+----------------------------------------------------------------------+

--
nvldk
------------------------------------------------------------------------
nvldk's Profile: https://forums.netiq.com/member.php?userid=8443
View this thread: https://forums.netiq.com/showthread.php?t=53589