OIM 11g SPML Test Data

In this post, I will provide some of the tests that I did with the SPML interface of OIM 11g.

After deploying the SPML war file and enabling the policy in em console, spml test interface can be accessed.

Select the option where in you can directly input the raw xml.

First Request is addRequest which creates a user in OIM if not present else throws appropriate error message.

Colorized version of the entered code 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>        
    <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org
/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:UsernameToken>
 <wsse:Username>XELSYSADM</wsse:Username><wsse:Password  
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0
#PasswordText">Abcd1234</wsse:Password></wsse:UsernameToken></wsse:Security></soap:Header>
    <soap:Body xmlns:ns2="urn:oasis:names:tc:SPML:2:0">
        <ns2:addRequest requestID="1" executionMode="asynchronous" locale="en
policyURI="http://www.sample.com/string/string" targetID="" returnData="identifier">
            <ns2:capabilityData mustUnderstand="" capabilityURI=""/>
            <ns2:psoID ID="50" targetID="">
                <ns2:containerID/>
            </ns2:psoID>
            <ns2:containerID ID="" targetID="">
                <ns2:containerID/>
            </ns2:containerID>
            <ns2:data xmlns:ns3="http://xmlns.oracle.com/idm/identity/PSO">
                <ns3:identity>                 
                   
                    <ns3:countryName>INDIA</ns3:countryName>
                    <ns3:employeeType>
                        <ns3:values>
                            <ns3:value>Full-Time</ns3:value>
                        </ns3:values>
                    </ns3:employeeType>
     <ns3:givenName>
                        <ns3:value>Deepak</ns3:value>
                    </ns3:givenName>
                    
    <ns3:mail>
                        <ns3:value>deepak.dubey@mydomain.com</ns3:value>
                    </ns3:mail>
                    
                    <ns3:organization>
                        <ns3:values>
                            <ns3:value>1</ns3:value>
                        </ns3:values>
                    </ns3:organization>
                 
                
                    <ns3:password>
                        <ns3:value>ABcde1234</ns3:value>
                    </ns3:password>
                    
                
                    <ns3:surname>
                        <ns3:values>
                            <ns3:value>Dubey</ns3:value>
                        </ns3:values>
                    </ns3:surname>
                   
                             
                    <ns3:username>
                        <ns3:value>DEEPAKD</ns3:value>
                    </ns3:username>
                   
                </ns3:identity>
            </ns2:data>
        </ns2:addRequest>
    </soap:Body>
</soap:Envelope>



 Next is activeRequest which checks if the user is active or not

Colorized version of the entered code 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
xmlns:urn="urn:names:spml:ws:header" xmlns:urn1="urn:oasis:names:tc:SPML:2:0:
suspend" xmlns:urn2="urn:oasis:names:tc:SPML:2:0" xmlns:ns1="http://docs.oasis
-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" >
   <soapenv:Header>
     <ns1:Security>
 <ns1:UsernameToken>
<ns1:Username>xelsysadm</ns1:Username>
<ns1:Password>Abcd1234</ns1:Password>
 </ns1:UsernameToken>
 </ns1:Security>
   </soapenv:Header>
   <soapenv:Body>
      <urn1:activeRequest requestID="143" executionMode="?" locale="?" policyURI="?">
         <!--You may enter ANY elements at this point-->
         <!--Zero or more repetitions:-->
         <urn2:capabilityData mustUnderstand="?" capabilityURI="?">
            <!--You may enter ANY elements at this point-->
         </urn2:capabilityData>
         <urn1:psoID ID="922">
            <!--You may enter ANY elements at this point-->
            <!--Optional:-->
            <urn2:containerID/>
         </urn1:psoID>
      </urn1:activeRequest>
   </soapenv:Body>
</soapenv:Envelope>

Comments

Popular posts from this blog

OIM 11g R2 PS2 : SOA Approval Workflow Sample

Oracle Identity Manager (OIM) Interview Questions

OHS 12c (12.1.3) webgate deployment and configuration