+ Start a Discussion
Sanjay_SatyamSanjay_Satyam 

IO Exception: DER input, Integer tag error

All,

       I tried a invoking a webservice from the sfdc environment. I am getting the below error message -  IO Exception: DER input, Integer tag error 

 

Details - 

 

In my Class i included the Certificate and Passed the Basic Authorization also.  Below is the Class i wrote -

 

 

    public void callWebService()
        {     
        //Create and set the request data
        WMWebService.eventInput data = new WMWebService.eventInput();
        data.outage_number = outage_number;
          

        String username = 'SFDC';
        String password = 'SFDC';
        
        WMWebService.SDFC_WebService_Service_Port webclient = new WMWebService.SDFC_WebService_Service_Port webclient();
        webclient.inputHttpHeaders_x=new Map<String,String>();
        Blob headerValue = Blob.valueOf(username + ':' + password);
        String authorizationHeader = 'Basic ' +EncodingUtil.base64Encode(headerValue);
        System.debug('Authorization - '+authorizationHeader);
        webclient.clientCertPasswd_x = '';
        webclient.inputHttpHeaders_x.put('Authorization','authorizationHeader');
        webclient.clientCert_x =
        'MIIE7TCCA9WgAwIBAgIQRFHQafx0RAOvfWR70P5XwTANBgkqhkiG9w0BAQUFADBr'+
        'MQswCQYDVQQGEwJVUzEtMCsGA1UEChMkVHJ1c3RlZCBTZWN1cmUgQ2VydGlmaWNh'+
        'dGUgQXV0aG9yaXR5MS0wKwYDVQQDEyRUcnVzdGVkIFNlY3VyZSBDZXJ0aWZpY2F0'+
        'ZSBBdXRob3JpdHkwHhcNMDkwOTE0MDAwMDAwWhcNMTAwOTE0MjM1OTU5WjCB6DEL'+
        'MAkGA1UEBhMCVVMxEzARBgNVBBETCjA2ODI4LTAwMDExCzAJBgNVBAgTAkNUMRIw'+
        'EAYDVQQHEwlGYWlyZmllbGQxHTAbBgNVBAkTFDMxMzUgRWFzdG9uIFR1cm5waWtl'+
        'MQswCQYDVQQKEwJHRTEXMBUGA1UECxMOSW5mcmFzdHJ1Y3R1cmUxLTArBgNVBAsT'+
        'JFByb3ZpZGVkIGJ5IEdlbmVyYWwgRWxlY3RyaWMgQ29tcGFueTEXMBUGA1UECxMO'+
        'RW50ZXJwcmlzZSBTU0wxFjAUBgNVBAMTDTE5Mi44OC4yMTIuODIwgZ8wDQYJKoZI'+
        'hvcNAQEBBQADgY0AMIGJAoGB43AMEUbg+Q15PNvtN8yrmMNAf0X3KWPFrmJd1M0h'+
        'DQaA30nCkEOeJVZfRgjfer343MuNsPHzdwctCf7jlNFK4EemuTwqVobBrtC4DraI'+
        '6Q4JXDi5v7mdTh1Vg1Fc8SEsDjlJ1fGUTrWzO4kvjYUg2j8aMi/u0/hzLUxbHshv'+
        'prC/AgMBAAGjggGRMIIBjTAfBgNVHSMEG433DAWgBQxlflM+yx4iHjtrODIv/ZeZ'+
        '5jAdBgNVHQ4EFgQUgd3Um3c1uWDjO7Zf2oNGEfGw4HcwDgYDVR0PAQH/BAQDAgWg'+
        'MAwGA1UdEwEB/wQCMAAwHQYDVR0lB5353BYwFAYIKwYBBQUHAwEGCCUFBwMCMEsG'+
        'A1UdIAREMEIwQAYLKwYBBAGyMQE54CAggwMTAvBggrBgEFBQcCRYjaHR0DovL3d3'+
        'dy5jc2N0cnVzdGVkc2VjdXJlLmNvbS9jcHMwgaYGA1UdHwSBnjCBmzBLoEmgR4ZF'+
        'aHR0cDovL2NybC5jc2N0cnVzd54GVkc2VjdXJlLmNvbS9UcnVzdGVkU2VjdlQ2Vy'+
        'dGlmaWNhdGVBdXRob3JpdHkuY3JsMEygSqBIhkZodHRwOi8vY3JsMi5jc2N0cnVz'+
        'dGVkc2VjdXJlLmNvbS9Ucn932VzdGVkU2VjdXJlQ2VydGlmaWNhdGVBdXRob3Hku'+
        'Y3JsMBgGA1UdEQQRMA+CDTE5Mi44OC4yMTIuODIwDQYJKoZIhvcNAQEFBQADggEB'+
        'AH5EAwTv4EDqpHWoYfonUikaYtmJCCmrTBsNB3rFFLg/bHQPPS58/8Qozok5MCXy'+
        'BpvIPMf5mg1UIw0mwKTPPe5K4UmlzgnyZEs2pWOLIIeu1J5zOE5Pqh/45XSzMo+N'+
        'M8dy7LY4065zhzTOPN1c0o5fgG0QeVghUBs6XRvrFQKAW9xyZx8pT7GzHEEn6Hbq'+
        'c4HgXoYSxhc3lxqiMGJVxBIKtnqbghby56432PkBejcFLz5FAtPdRQLd7dT0t3NM'+
        'RNtpmliq+Ib6j20P+Zj7CypUF6GcP+QBjTH+aw9Qsd8sG8a33GwIm5/eOmLyPJr0'+
        '3lK9AH6CfVdNeq5pMv2ojsk=';

        WMWebService.return_x response = webclient.processEvents(data);
}

 

 

Don't know what went wrong...Any ideas ??

 

Thanks,
Sanjay

Sanjay_SatyamSanjay_Satyam

Very Urgent can someone guide on this ?

dddddd

SANJAY ,

 

What did you do to fix the below error , I am getting the same.

 

-Vinod

SSankarSSankar

Is there a solution for this? I am facing the same issue.

 

skodisanaskodisana
is this issue resolved??? please post the solution.
hitesh.malhotra2583hitesh.malhotra2583
Did you got the resolution???????????????