Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • SIF Authentication test using SoapUI

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.02k
    Comment on it

    You can test the SIF Authentication API using SoapUI. WSDL link for Generic API will be http://MyHostName:MyPortNo/cmx/request/wsdl/ . Create a project in SoapUI and this WSDL link to it. Expand the project and open authenticate method and double click Request1.

    Copy paste following XML content to it and change the values as per your configuration:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:urn="urn:siperian.api">
           <soapenv:Header/>
           <soapenv:Body>
              <urn:authenticate>
                 <urn:username>MyUserName</urn:username>
                 <urn:password>
                    <urn:password>MyPassword</urn:password>
                    <urn:encrypted>false</urn:encrypted>
                 </urn:password>
                 <urn:orsId>MyORSId</urn:orsId>
              </urn:authenticate>
           </soapenv:Body>
        </soapenv:Envelope>
    

    If user credentials are invalid response similar to below will be visible:

    <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>
          <soapenv:Fault>
             <faultcode>soapenv:Server.userException</faultcode>
             <faultstring>com.siperian.sif.message.SiperianRequestFault</faultstring>
             <detail>
                <ns1:SiperianRequestFault xmlns:ns1="urn:siperian.api">
                   <ns1:requestName>Authenticate</ns1:requestName>
                   <ns1:errorCode>SIP-18024</ns1:errorCode>
                   <ns1:errorMessage>SIP-18024: Error occurred while validating user MyUserName, error was SIP-18028: Authentication failed.
    SIP-18028: Authentication failed.
    JNDI login failed of .....
    [LDAP: error code 49 - Invalid Credentials]
    Review the server log for more details.</ns1:errorMessage>
                </ns1:SiperianRequestFault>
             </detail>
          </soapenv:Fault>
       </soapenv:Body>
    </soapenv:Envelope>
    

    If correct credentials are used, response similar to below will be visible:

    <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>
          <authenticateReturn xmlns="urn:siperian.api">
             <roleName>ROLE.Proxy Role</roleName>
             <roleName>ROLE.IDD Read Only</roleName>
             <roleName>ROLE.Data Steward</roleName>
             <passwordExpires>false</passwordExpires>
             <externalAuthentication>false</externalAuthentication>
             <administrator>true</administrator>
             <username>admin</username>
          </authenticateReturn>
       </soapenv:Body>
    </soapenv:Envelope>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: