0 Replies Latest reply on Oct 15, 2019 7:14 AM by Anima Prasad-Oracle

    Error while accessing ERP UserDetailsServiceV2 from ADF application

    Anima Prasad-Oracle

      Getting an error while accessing ERP web service from ADF application. The ADF application is deployed on JCS. ERP cloud instance is OKTA enabled.


      ERP webservice: /hcmService/UserDetailsServiceV2?WSDL

      Error: <BEA-000000> <com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: InvalidSecurity : error in processing the WS-Security security header Please see the server log to find more detail regarding exact cause of the failure.


      Following code changes are done while invoking ERP
      UserDetailsServiceV2 wsdl:-

      1. this.m_securityFeature = new SecurityPolicyFeature[] { new SecurityPolicyFeature("policy:oracle/wss11_username_token_with_message_protection_client_policy")};
      2. WSBindingProvider wsbp = (WSBindingProvider) userDetailsService;
      3. wsbp.getRequestContext().put("SecurityConstants.ClientConstants.WSS_CSF_KEY","csf-key");
      4. wsbp.getRequestContext().put("SecurityConstants.ClientConstants.WSS_RECIPIENT_KEY_ALIAS","FAEncryption");
      5. wsbp.getRequestContext().put("SecurityConstants.ClientConstants.WSS_ENC_CSF_KEY","FAEncryption");


      CSF-Key: key created in JCS server with ERP login credentials

      ‘FAEncryption’ ‘Cloud9CA-2’  : These two Certificates are specific to above web-service and are imported in JCS server.