Anonymous_User Absent Member.
Absent Member.
376 views

SOAP driver error handling


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\dirxmlscript4.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.php?attachmentid=286 |
+----------------------------------------------------------------------+

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

Labels (1)
0 Likes
1 Reply
Knowledge Partner
Knowledge Partner

Re: SOAP driver error handling

nvldk wrote:

>
> 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.
>


You need to do your error processing either before the conversion from pub-its-SPMLInputTransform (and copy the relevant details to operation data) or.. modify the pub-its-SPMLInputTransform stylesheet to ensure that the other details are retained when converting to XDS

I would go for the first option, especially if XSLt is not your forte.
Alex McHugh - Knowledge Partner - Stavanger, Norway
Who are the Knowledge Partners
If you appreciate my comments, please click the Like button.
If I have resolved your issue, please click the Accept as Solution button.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.