You need to sign in to do that
Don't have an account?
lreed
Using @Future to call webservice from Trigger
I have a trigger that calls a webservice using @future in order to send orders to a 3rd Party vendor automatically. I receive a "Status: OK" and "Status Code: Success". However, nothing is received by the 3rd party vendor. We have a manual process that requires clicking a button to invoke this same web service and it works.
Any assistance would be greatly appreciated.
Any assistance would be greatly appreciated.
The status is fine, but can you log & check your response XML? as sometimes middleware send error message even with Status :OK.
// Log the XML content
System.debug(res.getBody());
Regards,
Pawan Kumar
In order to troubleshoot , please send your request to below URL. This way we can make sure, your reuest is going outside from your salesforce instance. But Please configure Remote Site Setting with URL [https://putsreq.com/] before sending request to below URL.
https://putsreq.com/Q393aQJ1jLGiHAtaupe0
Note :The above url is nothing but simulator.
Regards,
Pawan Kumar
https://putsreq.com/Q393aQJ1jLGiHAtaupe0/inspect
Regards,
Pawan Kumar