User Service
This service exposed method to do user management related activities i.e. create user, edit user, add role etc.This service has methods to do this. Below methods are available for the same.
- Create User
- Edit User
- Delete User
- Add Role
- Delete Role
- Search Users
XSD: UserService.xsd
Create User
This webservice method will be used to create user in the system. Sample request for this method as follows:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:user="http://www.oracle.com/insurance/oipa/UserService"> <soapenv:Header> <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-4498E8EB2B1AFB421714658131368703"> <wsse:Username>test</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">test</wsse:Password> <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">joSZcHL+zFUkwGYSqeRjqA==</wsse:Nonce> <wsu:Created>2016-06-13T10:18:56.870Z</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <user:CreateUserRequest> <user:User id="1"> <user:UserID>test</user:UserID> <user:FirstName>test</user:FirstName> <user:LastName>test</user:LastName> <user:Gender>M</user:Gender> <user:Email>test@test.com</user:Email> <user:PrimaryCompany>test</user:PrimaryCompany> <user:Locale>01</user:Locale> <user:Password>test</user:Password> <user:Role id="1"> <user:RoleName>test</user:RoleName> <user:RoleEffectiveFrom>2016-05-13T10:18:56.870Z</user:RoleEffectiveFrom> <user:RoleEffectiveTo>2099-06-13T10:18:56.870Z</user:RoleEffectiveTo> </user:Role> </user:User> </user:CreateUserRequest> </soapenv:Body> </soapenv:Envelope> |
If userid already exist or mandatory data is missing then exception will be thrown. List of mandatory data as follows.
- UserID
- FirstName
- LastName
- Password
- PrimaryCompany
- Locale
- RoleName (Security Group Name)
- RoleEffectiveFrom
Edit User
This webservice method will be used to edit the existing user information. Sample request for this method as follows:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:user="http://www.oracle.com/insurance/oipa/UserService"> <soapenv:Header> <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-4498E8EB2B1AFB421714658134391124"> <wsse:Username>test</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">test</wsse:Password> <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">566FvtjtEG0P8XObV8eG3A==</wsse:Nonce> <wsu:Created>2016-06-13T10:23:59.112Z</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <user:EditUserRequest> <user:User id="1"> <user:UserID>test</user:UserID> <user:FirstName>test</user:FirstName> <user:LastName>test</user:LastName> <user:Gender>M</user:Gender> <user:Email>?test@test.com/user:Email> <user:PrimaryCompany>test</user:PrimaryCompany> <user:Locale>01</user:Locale> <user:Password>test</user:Password> <user:UserStatus>01</user:UserStatus> <user:Role id="1"> <user:RoleName>test</user:RoleName> <user:RoleEffectiveFrom>2016-05-13T10:18:56.870Z</user:RoleEffectiveFrom> <user:RoleEffectiveTo>2099-06-13T10:18:56.870Z</user:RoleEffectiveTo> </user:Role> </user:User> </user:EditUserRequest> </soapenv:Body> </soapenv:Envelope> |
If mandatory data is missing then exception will be thrown. List of mandatory data as follows.
- UserID
Delete User
This webservice method will be used to delete/inactivate the existing user in the system. Sample request for this method as follows:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:user="http://www.oracle.com/insurance/oipa/UserService"> <soapenv:Header> <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-4498E8EB2B1AFB421714658137890125"> <wsse:Username>test</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">test</wsse:Password> <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">nUZcWMl4dX4zn6sd3qxBPA==</wsse:Nonce> <wsu:Created>2016-06-13T10:29:49.012Z</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <user:DeleteUserRequest> <user:User id="1"> <user:UserID>test</user:UserID> </user:User> </user:DeleteUserRequest> </soapenv:Body> </soapenv:Envelope> |
If mandatory data is missing then exception will be thrown. List of mandatory data as follows.
- UserID
Add Role
This webservice method will be used to add one or more role to the existing user in the system. Sample request for this method as follows:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:user="http://www.oracle.com/insurance/oipa/UserService"> <soapenv:Header> <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-4498E8EB2B1AFB421714658138983996"> <wsse:Username>test</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">test</wsse:Password> <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">qfRPg5+fFMIqqYg0yTkgyw==</wsse:Nonce> <wsu:Created>2016-06-13T10:31:38.399Z</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <user:AddRoleRequest> <user:User id="1"> <user:UserID>test</user:UserID> <user:Role id="1"> <user:RoleName>test</user:RoleName> <user:RoleEffectiveFrom>2016-05-13T10:31:38.399Z</user:RoleEffectiveFrom> <user:RoleEffectiveTo>2099-06-13T10:31:38.399Z</user:RoleEffectiveTo> </user:Role> <user:Role id="2"> <user:RoleName>test1</user:RoleName> <user:RoleEffectiveFrom>2016-05-13T10:31:38.399Z</user:RoleEffectiveFrom> <user:RoleEffectiveTo>2099-06-13T10:31:38.399Z</user:RoleEffectiveTo> </user:Role> </user:User> </user:AddRoleRequest> </soapenv:Body> </soapenv:Envelope> |
If mandatory data is missing then exception will be thrown. List of mandatory data as follows.
- UserID
- RoleName (Security Group Name)
- RoleEffectiveFrom
Delete Role
This webservice method will be used to delete one or more role to the existing user in the system. Sample request for this method as follows:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:user="http://www.oracle.com/insurance/oipa/UserService"> <soapenv:Header> <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-4498E8EB2B1AFB421714658141953977"> <wsse:Username>test</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">test</wsse:Password> <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">GB+CLshWIb5PXn2jX3b49g==</wsse:Nonce> <wsu:Created>2016-06-13T10:36:35.397Z</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <user:DeleteRoleRequest> <user:User id="1"> <user:UserID>test</user:UserID> <user:Role id="1"> <user:RoleName>test1</user:RoleName> <user:RoleEffectiveTo>2014406-13T10:36:35.397Z</user:RoleEffectiveTo> </user:Role> <user:Role id="2"> <user:RoleName>test2</user:RoleName> <user:RoleEffectiveTo>2014406-13T10:36:35.397Z</user:RoleEffectiveTo> </user:Role> </user:User> </user:DeleteRoleRequest> </soapenv:Body> </soapenv:Envelope> |
If mandatory data is missing then exception will be thrown. List of mandatory data as follows.
- UserID
- RoleName (Security Group Name)
- RoleEffectiveTo
Search Users
This webservice method will be used to search users in the system and get the basic details. Search can be done with one or multiple search criteria.Sample request for this method as follows.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:user="http://www.oracle.com/insurance/oipa/UserService"> <soapenv:Header> <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-4498E8EB2B1AFB421714658143628748"> <wsse:Username>test</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">test</wsse:Password> <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">3N/68M5VmC9noQWVMwK/UQ==</wsse:Nonce> <wsu:Created>2016-06-13T10:39:22.874Z</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <user:SearchUserRequest> <user:User id="1"> <user:UserID>test</user:UserID> <user:FirstName>test</user:FirstName> <user:LastName>test</user:LastName> <user:Gender>M</user:Gender> <user:Email>test@test.om</user:Email> <user:PrimaryCompany>test</user:PrimaryCompany> <user:Locale>00</user:Locale> <user:UserStatus>00</user:UserStatus> <user:Role id="1"> <user:RoleName>test</user:RoleName> </user:Role> </user:User> </user:SearchUserRequest> </soapenv:Body> </soapenv:Envelope> |
At least one of UserID, FirstName, LastName, PrimaryCompany or RoleName(Security Group Name) should be passed. Response for this request as follows:
<File> <Math ID="Math"> <MathVariables> <MathVariable VARIABLENAME="Number" TYPE="VALUE" DATATYPE="TEXT">31ALIC010801</MathVariable> <MathVariable VARIABLENAME="Prefix" TYPE="VALUE" DATATYPE="TEXT">AVA</MathVariable> <MathVariable VARIABLENAME="PolicyNumber" TYPE="EXPRESSION" DATATYPE="TEXT">Prefix+Number</MathVariable> <MathVariable VARIABLENAME="State" TYPE="VALUE" DATATYPE="TEXT">/NewPolicy/PolicyIssueState</MathVariable> </MathVariables> </Math> <AssignAttributes> <Attribute NAME="TestValue" TYPE="VALUE">Math:PolicyNumber</Attribute> <Attribute NAME="PolicyState" TYPE="XPATH">Math:State</Attribute> </AssignAttributes> </File> |
<soapenv:Envelope xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""> <soapenv:Body> <ns1:processFileReceivedResponse soapenv:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:ns1=""http://FileReceived""> <processFileReceivedReturn xsi:type=""xsd:string""> <![CDATA[<?xml version=""1.0"" encoding=""UTF-8""?> <AsXml> <AsAllocation> <AllocationGuid>09B57F68-0B2D-476D-AA4F-806CBA5D118A</AllocationGuid> <Value>100</Value> <GroupGuid>9FF5FE2A-D5EC-4B77-A5F5-DF44E6AB0BC7</GroupGuid> <TypeCode>03</TypeCode> <RelatedGuid>A3CCC022-A7A3-1BAD-E040-8C0A0EA651AF</RelatedGuid> <FundGuid>66E7A284-2959-4261-84E5-FB81900AC504</FundGuid> <AllocationMethodCode>01</AllocationMethodCode> <AllocationPercent>20</AllocationPercent> <AllocationAmount>10</AllocationAmount> <AllocationUnits>2</AllocationUnits> <PercentInAllocation>0</PercentInAllocation> <EffectiveDate/> </AsAllocation> <AsAllocation> <AllocationGuid>717A1C87-AFFF-4BF1-86CD-F525A941D29B</AllocationGuid> <Value>100</Value> <GroupGuid>9FF5FE2A-D5EC-4B77-A5F5-DF44E6AB0BC7</GroupGuid> <TypeCode>03</TypeCode> <RelatedGuid>A3CCC022-A7A3-1BAD-E040-8C0A0EA651AF</RelatedGuid> <FundGuid>56FE02B5-E24F-41CB-BBAB-FD5A1212210F</FundGuid> <AllocationMethodCode>01</AllocationMethodCode> <AllocationPercent>20</AllocationPercent> <AllocationAmount>10</AllocationAmount> <AllocationUnits>2</AllocationUnits> <EffectiveDate/> </AsAllocation> <AsAllocation> <AllocationGuid>914C2901-6838-495E-BF81-01DA9423E624</AllocationGuid> <Value>100</Value> <GroupGuid>98DEFD38-40EA-4562-A023-CD80F77936E8</GroupGuid> <TypeCode>03</TypeCode> <RelatedGuid>A3CCC022-A7A3-1BAD-E040-8C0A0EA651AF</RelatedGuid> <FundGuid>E5840467-A35B-44CF-8FAD-3CB03AFB2F3A</FundGuid> <AllocationMethodCode>01</AllocationMethodCode> <AllocationPercent>20</AllocationPercent> <AllocationAmount>10</AllocationAmount> <AllocationUnits>2</AllocationUnits> <PercentInAllocation>0</PercentInAllocation> <EffectiveDate/> </AsAllocation> <AsAllocation> <AllocationGuid>305A4E2E-E3B4-4756-B48A-B7399AB564E2</AllocationGuid> <Value>100</Value> <GroupGuid>98DEFD38-40EA-4562-A023-CD80F77936E8</GroupGuid> <TypeCode>03</TypeCode> <RelatedGuid>A3CCC022-A7A3-1BAD-E040-8C0A0EA651AF</RelatedGuid> <FundGuid>8DAE3947-83F6-4189-BB3F-DCA40F3AAAC9</FundGuid> <AllocationMethodCode>01</AllocationMethodCode> <AllocationPercent>20</AllocationPercent> <AllocationAmount>10</AllocationAmount> <AllocationUnits>2</AllocationUnits> <PercentInAllocation>0</PercentInAllocation> <EffectiveDate/> </AsAllocation> </AsXml> ]]> </processFileReceivedReturn> </ns1:processFileReceivedResponse> </soapenv:Body> </soapenv:Envelope> |