Questions tagged [httpresponse]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
3answers
42k views

Missing SOAP action header

Im trying to get the session ID of another user in the same org by sending the following request by using the data from my enterprise wsdl and its an developer edition. <?xml version="1.0" ...
5
votes
1answer
3k views

Is it possible to read cookie while doing a HTTP Get to external website?

Well was wondering if this is possible at all ? The aim is to get a cookie from an external website. But while going through the HTTP class for both Request and Response I don't think there is a ...
3
votes
1answer
7k views

How to set timeout for web service call

I want to call out my web service after the insert process of a custom object with a delay of 2 minutes. But i am getting that exception FATAL_ERROR|System.CalloutException: Read timed out How can i ...
2
votes
1answer
3k views

Verify getChildElement() is not null

As a follow up to my previous post: REST API calls to 3rd Party (Pardot), multiple @future callouts There are two responses I expect back when I attempt this Web Service callout to Pardot: 1) ...
7
votes
1answer
4k views

You have uncommitted work pending. Please commit or rollback before calling out

I have written a callout class as below.But when a account is created/updated am getting the exception like "You have uncommitted work pending. Please commit or rollback before calling out" at 36 line(...
6
votes
0answers
149 views

API request/response codes when site is in read-only maintenance mode?

I checked out Read-Only Mode Overview but I'm still unsure of how our API will respond, particularly the response code. Will POST/PUT requests automatically return a 503 service unavailable or will ...
8
votes
1answer
801 views

HTTP Callout Problems in Pre-release

I am running the same code in two different environments and I am getting different results. I have the following code hitting the REST API exposed on StackExchange: Http httpQuestions = new Http(); ...
6
votes
1answer
4k views

how to get test coverage for @future and http response method in class

Below is my apex class and trigger, that is used to send sms from 3rd party application and that is working fine, but i'm not getting test coverage for class. If i use @future method my apex class ...
2
votes
1answer
802 views

How to Create Records from XML Data?

This is the webservice response I am Getting in XML Format. <?xml version="1.0"?> <ListOrdersResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01"> <ListOrdersResult> ...
2
votes
2answers
2k views

HttpResponse StatusCode=200, but 3rd party request (Pardot) not made

ObJective: I am attempting to create a new prospect in Pardot when a lead that had no email gets updated with an email (Pardot will sync accounts but until the lead email exist there is no prospect to ...
1
vote
2answers
1k views

Is it possible to add http headers. for example set-cookie, via ampscript or ssjs in ExactTarget?

I would prefer not to use javascript to set a cookie if possible. I am pretty sure it's possible to read a cookie using HTTPRequestHeader(S1), but I'd like to be able to set one when a user submits a ...
1
vote
1answer
1k views

How to use HttpGet service to get a list of objects and create them?

I have a callout method which helps to get an list of objects from another salesforce-organisation. But how can I convert this list into objects on callout's organisation side? And how can I do this ...
0
votes
1answer
109 views

Invalid endpoint error after spring 15 upgrade

I can't definitively say its spring 15 but it appears that some of our callouts to google maps (distance matrix api) for our managed package are failing in a customer's sandboxes (spring 15) that were ...
0
votes
1answer
786 views

Handle soap response from php toolkit

I use force explorer to query datas, it works well. My query : `$query_result = $mySforceConnection->query("SELECT Metier__c, Profil__c, Secteur__c, TypeContrat__c, Id FROM Opportunity");` ...
0
votes
0answers
842 views

How to use Simple Stripe Checkout in salesforce

I am trying to use the Stripe's Simple Checkout Demo with Salesforce to receive a token. Can someone help me figure out why this simple demo does not work? I am not receiving any value in the ...