• Yury.K
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 8
    Replies

Hello everyone,
Currently I'm trying to download attachment from salesforce.com through salesforce site. Everything works perfectly with HTTP, but when I'm trying to download from HTTPS it doesn't work. 

 

Algorithm that I'm using for downloading looks like this:

1. I created remote access for my HTTPS site at salesforce.com.

2. Got access token for HTTPS callout by username/password/consumer key/consumer secret.

3. Made callout with header name "Authorization" and header value is "OAuth 00DU0000000Ib6Z!AQ0AQJuSJZpBhtfXy_zO.PP7f3Hh.EQVwCqec2uQgbXOqx1V1U...."

 

But download doesn't work. Am I doing something wrong?

 

Thanks,

Yury.

Hello everyone,

Im working with SAP WebServices. I'm trying to call WebServices from SFDC by HTTP POST, while I'm trying to post on https:\\ URL - im getting such error :

"System.CalloutException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target "

Trusted IP address and Remote Site Settings are set for this https URL.

 

Does anyone know how to fix this issue?

 

Thanks and Regards,

Yury.

  • April 06, 2012
  • Like
  • 0

Hello everyone,
I'm using REST API to be authorized in Force.com, I have no problem with getting and using access token. Im using access token as header, everything works perfectly.

 

But I wonder if I can use access token, as parameter in URL?
So url parameter will look like :
&access_token=<access token>
Is it possible? If yes - which variable in parameter should I use ?

 

Thanks and Regards,
Yury.

  • March 07, 2012
  • Like
  • 0

Hello,

I'm working with calling APEX REST classes outside of salesforce. 2 month ago I got APEX REST class with long logic which worked perfectly, I called that logic by python script with authorizarion (oAuth 2.0). And now it doesn't work, even when I'm trying to call simple APEX REST like: 


@RestResource(urlMapping = '/test_yury/*')
global with sharing class SAP_BOMclass_Yury_test {

    @HttpGet
    global static string BOMtest(RestRequest req, RestResponse res)
    {
        
        return 'hello there';  
    }      
   
    @HttpPost
    global static string BOMtest1(RestRequest req, RestResponse res)
    {
        
        return 'hello there';  
    }      
} 

I'm calling it by url https://<instance>.salesforce.com/services/apexrest/test_yury with headers 'Authorization' : 'OAuth '+<access_token>(https://<instance>.salesforce.com/services/apexrest/test_yury ws implemented in Remote Access tab).

Also tryed HTTP POST/GET at https://apigee.com , which I saw salesforce used it in some webinar..

 

 

But still I'm getting 404 error :

 

HTTP/1.1 404 Not Found

Date: Mon, 09 Jan 2012 09:44:22 GMT Content-Length: 98 Content-Type: application/json; charset=UTF-8 Connection: close Server: [ { "message": "Could not find a match for URL /test_yury","errorCode": "NOT_FOUND} ]

 

Any ideas why this error started poping up?

Thanks

  • January 10, 2012
  • Like
  • 0

Hello everyone,

Im working with SAP WebServices. I'm trying to call WebServices from SFDC by HTTP POST, while I'm trying to post on https:\\ URL - im getting such error :

"System.CalloutException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target "

Trusted IP address and Remote Site Settings are set for this https URL.

 

Does anyone know how to fix this issue?

 

Thanks and Regards,

Yury.

  • April 06, 2012
  • Like
  • 0

Hello everyone,
I'm using REST API to be authorized in Force.com, I have no problem with getting and using access token. Im using access token as header, everything works perfectly.

 

But I wonder if I can use access token, as parameter in URL?
So url parameter will look like :
&access_token=<access token>
Is it possible? If yes - which variable in parameter should I use ?

 

Thanks and Regards,
Yury.

  • March 07, 2012
  • Like
  • 0

Hello,

I'm working with calling APEX REST classes outside of salesforce. 2 month ago I got APEX REST class with long logic which worked perfectly, I called that logic by python script with authorizarion (oAuth 2.0). And now it doesn't work, even when I'm trying to call simple APEX REST like: 


@RestResource(urlMapping = '/test_yury/*')
global with sharing class SAP_BOMclass_Yury_test {

    @HttpGet
    global static string BOMtest(RestRequest req, RestResponse res)
    {
        
        return 'hello there';  
    }      
   
    @HttpPost
    global static string BOMtest1(RestRequest req, RestResponse res)
    {
        
        return 'hello there';  
    }      
} 

I'm calling it by url https://<instance>.salesforce.com/services/apexrest/test_yury with headers 'Authorization' : 'OAuth '+<access_token>(https://<instance>.salesforce.com/services/apexrest/test_yury ws implemented in Remote Access tab).

Also tryed HTTP POST/GET at https://apigee.com , which I saw salesforce used it in some webinar..

 

 

But still I'm getting 404 error :

 

HTTP/1.1 404 Not Found

Date: Mon, 09 Jan 2012 09:44:22 GMT Content-Length: 98 Content-Type: application/json; charset=UTF-8 Connection: close Server: [ { "message": "Could not find a match for URL /test_yury","errorCode": "NOT_FOUND} ]

 

Any ideas why this error started poping up?

Thanks

  • January 10, 2012
  • Like
  • 0