You need to sign in to do that
Don't have an account?
karimulla testing
rest callouts form salesforce to .net
hi..
i had passed the url in remotesite settings and after that in anonymous window:
Http http = new Http();
HttpRequest request = new HttpRequest();
request.setEndpoint('http://www.XXXXXXXX.com/api/GetCountryDetails');
request.setMethod('GET');
HttpResponse response = http.send(request);
// Parse the JSON response
if (response.getStatusCode() != 404) {
System.debug('The status code returned was not expected: ' +
response.getStatusCode() + ' ' + response.getStatus());
} else {
System.debug(response.getBody());
}
... Actually we are trying to restcallout form salesforce application to other dotnet(.net) application which is in developing in local server or hosted in the local server ... iam getting an error as shown
how to make the callout will the other application is in localserver...any idea will be appreciated....
i had passed the url in remotesite settings and after that in anonymous window:
Http http = new Http();
HttpRequest request = new HttpRequest();
request.setEndpoint('http://www.XXXXXXXX.com/api/GetCountryDetails');
request.setMethod('GET');
HttpResponse response = http.send(request);
// Parse the JSON response
if (response.getStatusCode() != 404) {
System.debug('The status code returned was not expected: ' +
response.getStatusCode() + ' ' + response.getStatus());
} else {
System.debug(response.getBody());
}
... Actually we are trying to restcallout form salesforce application to other dotnet(.net) application which is in developing in local server or hosted in the local server ... iam getting an error as shown
how to make the callout will the other application is in localserver...any idea will be appreciated....