I need guidance with our current SAP - Salesforce situation. We already have implemented a few outbound HTTP request classes. However, in those classes, it was Salesforce which determined when to run the class and so, when to do the callout.
Our current SAP - Salesforce situation is a bit different. Every change in SAP sends a SOAP message from SAP. This has to be caught in an Apex Class. So, I need some kind of listener that can catch the SOAP messages.
Do you have ay information to point me in the correct direction? Or even an example I can use to understand the best solution?
EDIT (from comments):
The Apex class has to be a listener. At the moment, we cannot change the SAP interface (no resources). Also, in the interface it is nowhere defined to point to Salesforce, so the apex class has to be a listener to the SAP web service, and as soon as the web service sends out SOAP messages, it needs to capture an treat it.