+ Start a Discussion
jiri1.3966104396934639E12jiri1.3966104396934639E12 

Outbound messages problem

Hello,

I'm setting up a web service for a SF outbound messages. I have it working now, but noticed a problem:

message is POSTed to the specified url if it for some reason fails the repeated calls are GET request without any data. So they repeatadly fail with "Bad request" error.
Ashish_SFDCAshish_SFDC
Hi , 


try adding the following line after req.setEndpoint(url);

req.setHeader('Authorization', 'OAuth '+UserInfo.getSessionId());=

See more in the thread below, 

https://developer.salesforce.com/forums?id=906F000000099zbIAA


Regards,
Ashish