Sample Soap request for listAssociations() WebService request with AnA enabled

Document ID : KB000017126
Last Modified Date : 15/03/2019
Show Technical Document Details
Introduction:

I am trying to consume RiskFortEvaluateRiskSvc listAssociations() operation, but authentication fails 
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:wsdl="http://ws.arcot.com/RiskFortEvaluateRiskAPI/3.0/wsdl">
<soap:Header>
<userID>gaadmin</userID>
<orgName>defaultorg</orgName>
<credential>password</credential>
</soap:Header>

<soap:Body>
<wsdl:ListAssociationsRequest>
<wsdl:userContext>
<!--Optional:-->
<wsdl:orgName>AD-PROD</wsdl:orgName>
<wsdl:userName>USER1</wsdl:userName>
</wsdl:userContext>

</wsdl:ListAssociationsRequest>
</soap:Body>
</soap:Envelope>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:rf1="http://ws.arcot.com/RiskFortEvaluateRiskAPI/2.0/wsdl/EvaluateRiskAPISOAP11Binding" xmlns:rf2="http://ws.arcot.com/RiskFortEvaluateRiskAPI/2.0/wsdl" xmlns:rf10="http://ws.arcot.com/RiskFortEvaluateRiskAPI/3.0/wsdl/EvaluateRiskAPISOAP11Binding" xmlns:rf11="http://ws.arcot.com/RiskFortEvaluateRiskAPI/3.0/wsdl" xmlns:rf12="http://ws.arcot.com/RiskFortEvaluateRiskAPI/3.0/wsdl/EvaluateRiskAPISOAP12Binding" xmlns:rf3="http://ws.arcot.com/RiskFortEvaluateRiskAPI/2.0/wsdl/EvaluateRiskAPISOAP12Binding" xmlns:rf4="http://ws.arcot.com/RiskFortIssuanceAPI/2.0/wsdl/IssuanceAPISOAP11Binding" xmlns:rf5="http://ws.arcot.com/RiskFortIssuanceAPI/2.0/wsdl" xmlns:rf6="http://ws.arcot.com/RiskFortIssuanceAPI/2.0/wsdl/IssuanceAPISOAP12Binding" xmlns:rf7="http://ws.arcot.com/RiskFortIssuanceAPI/3.0/wsdl/IssuanceAPISOAP11Binding" xmlns:rf8="http://ws.arcot.com/RiskFortIssuanceAPI/3.0/wsdl" xmlns:rf9="http://ws.arcot.com/RiskFortIssuanceAPI/3.0/wsdl/IssuanceAPISOAP12Binding">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<SOAP-ENV:Code>
<SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value>
</SOAP-ENV:Code>
<SOAP-ENV:Reason>
<SOAP-ENV:Text xml:lang="en">TRANS_FAULT</SOAP-ENV:Text>
</SOAP-ENV:Reason>
<SOAP-ENV:Detail>
<rf11:RiskFortFault>
<rf11:responseCode>7691</rf11:responseCode>
<rf11:errorMessage>Authentication / Authorization Failed</rf11:errorMessage>
<rf11:paramName/>
<rf11:paramValue/>
<rf11:reasonCode>8000</rf11:reasonCode>
<rf11:transactionID/>
</rf11:RiskFortFault>
</SOAP-ENV:Detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Question:

Provide a sample Soap request for listAssociations() WebService request with AnA enabled.

Environment:
8.x and onward
Answer:

Below sample can be used for listAssociations() web service request-

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:wsdl="http://ws.arcot.com/RiskFortEvaluateRiskAPI/3.0/wsdl">

   <soap:Header>

   <INFO>

   <userid>globaladmin</userid>

   <orgname>DEFAULTORG</orgname>

   <credential>password</credential>

   </INFO> 

   </soap:Header>

   <soap:Body>

      <wsdl:ListAssociationsRequest>

         <!--Optional:-->

         <wsdl:callerId>1234</wsdl:callerId>

         <wsdl:userContext>

            <!--Optional:-->

            <wsdl:orgName>DEFAULTORG</wsdl:orgName>

            <wsdl:userName>TESTUSER1</wsdl:userName>

         </wsdl:userContext>

         

      </wsdl:ListAssociationsRequest>

   </soap:Body>

</soap:Envelope>

Additional Information:

N/A