I have a need to extract info from a SOAP response from an Integration
Activity. Looking around here, there seems to be some doubt as to the
availability of the necessary libraries to do this in the workflow
engine. I do not have the ability to add jar files to the server due to
configuration control issues.

Identity Manager Version 3.7.0 Patch C3
Build Revision 36717

For those out there with ideas, here is what I am looking to
accomplish. I have a need to back out some resource assignments. I can
get a good list via SOAP, sample below. I need to find those that have
the "UniqueReasonTag", grab some parameters from them and make
requestResourceRevoke calls for to remove the assignments. Things work
well via SoapUI, and I am using Designer 4.0.1AU2, which has the newer
Integration Activity code.


SOAP response from a getResourceAssignmentsForUser call;

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:getResourceAssignmentsForUserResponse
xmlns="http://www.novell.com/resource/service"
xmlns:ns1="http://www.novell.com/resource/service">
<result>
<resourceassignment>

<instanceGuid>6191a9b953d74b0caa310e79ae49378f</instanceGuid>
<reason>UniqueReasonTag</reason>
<recipientDn>cn=USERID,ou=CONTAINER,o=ORG</recipientDn>
<requestDate>2011-12-14T08:30:03</requestDate>
<requestParams>
<resourcerequestparam>
<name>EntitlementParamKey</name>

<value>CN=AD-GROUPNAME,OU=ADContainer,DC=dc1,DC=ADdomain,DC=com pany,DC=com</value>
</resourcerequestparam>
</requestParams>

<requesterDn>cn=theadmin,ou=container,o=COMPANY</requesterDn>

<resourceDn>cn=resource1,cn=ResourceDefs,cn=RoleCo nfig,cn=AppConfig,cn=UserApplication,cn=DriverSet, ou=IDM,ou=SERVICES,o=COMPANY</resourceDn>
</resourceassignment>
<resourceassignment>

<instanceGuid>a376a0f6b52a4cf6a9298094bbdf37b3</instanceGuid>
<reason>UniqueReasonTag</reason>
<recipientDn>cn=USERID,ou=CONTAINER,o=ORG</recipientDn>
<requestDate>2011-12-14T08:30:19</requestDate>
<requestParams>
<resourcerequestparam>
<name>param1</name>
<value>a_value</value>
</resourcerequestparam>
</requestParams>

<requesterDn>cn=theadmin,ou=container,o=COMPANY</requesterDn>

<resourceDn>cn=resource2,cn=ResourceDefs,cn=RoleCo nfig,cn=AppConfig,cn=UserApplication,cn=DriverSet1 ,ou=IDM,ou=SERVICES,o=COMPANY</resourceDn>
</resourceassignment>
<resourceassignment>

<instanceGuid>64f419ebf1254fdd8c8a3ea4dc02a04c</instanceGuid>
<reason>UniqueReasonTag</reason>
<recipientDn>cn=USERID,ou=CONTAINER,o=ORG</recipientDn>
<requestDate>2011-12-14T08:30:37</requestDate>
<requestParams>
<resourcerequestparam>
<name>param1</name>
<value>some_value</value>
</resourcerequestparam>
</requestParams>

<requesterDn>cn=theadmin,ou=container,o=COMPANY</requesterDn>

<resourceDn>cn=resource3,cn=ResourceDefs,cn=RoleCo nfig,cn=AppConfig,cn=UserApplication,cn=DriverSet, ou=IDM,ou=SERVICES,o=COMPANY</resourceDn>
</resourceassignment>
<resourceassignment>

<instanceGuid>4a11ecf319f94b1ca6841daa77a93cec</instanceGuid>
<reason>UniqueReasonTag</reason>
<recipientDn>cn=USERID,ou=CONTAINER,o=ORG</recipientDn>
<requestDate>2011-12-14T08:30:50</requestDate>
<requestParams>
<resourcerequestparam>
<name>param1</name>
<value>some_other_value</value>
</resourcerequestparam>
</requestParams>

<requesterDn>cn=theadmin,ou=container,o=COMPANY</requesterDn>

<resourceDn>cn=resource4,cn=ResourceDefs,cn=RoleCo nfig,cn=AppConfig,cn=UserApplication,cn=DriverSet, ou=IDM,ou=SERVICES,o=COMPANY</resourceDn>
</resourceassignment>
<resourceassignment>

<instanceGuid>a227864a3cf44b3a9b86dc9173aa0161</instanceGuid>
<reason>UniqueReasonTag</reason>
<recipientDn>cn=USERID,ou=CONTAINER,o=ORG</recipientDn>
<requestDate>2011-12-14T08:31:10</requestDate>
<requestParams>
<resourcerequestparam>
<name>param1</name>
<value>program=17</value>
</resourcerequestparam>
</requestParams>

<requesterDn>cn=theadmin,ou=container,o=COMPANY</requesterDn>

<resourceDn>cn=resource5,cn=ResourceDefs,cn=RoleCo nfig,cn=AppConfig,cn=UserApplication,cn=DriverSet, ou=IDM,ou=SERVICES,o=COMPANY</resourceDn>
</resourceassignment>
</result>
</ns1:getResourceAssignmentsForUserResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


--
tse7147
------------------------------------------------------------------------
tse7147's Profile: http://forums.novell.com/member.php?userid=4730
View this thread: http://forums.novell.com/showthread.php?t=449595