SOAP_CALLOUT_PRE
Operation that is called before a request for a web service is actually sent. If the operation cannot be found, processing continues.
operation SOAP_CALLOUT_PRE params string Envelope : INOUT string ComponentName : IN string OperationName : IN endparams Your Code here ... end;
Parameters
- Envelope—content of the SOAP envelope.
- ComponentName—name of the web service component
- OperationName—name of the operation on ComponentName that is being activated
Return Values
Value | Meaning |
---|---|
0 >1 |
Operation succeeded and processing can continue. |
1 | Fast track response. No web service is actually called, no further callbacks, pre or post, are called and the returned envelope is treated as the response. |
<0 | Operation failed to successfully process the SOAP envelope. Further processing of the activate statement in the SOAP connector will be aborted |
Description
The SOAP_CALLOUT_PRE operation is invoked by the SOAP connector before it actually sends the SOAP message containing the activation request to the web service. The operation can be used to add SOAP header elements or encrypt the data in the SOAP envelope.
The names of the parameters are optional. Any other change to the interface, such as additional parameters or a different operation name, cause the operation to fail.
Note: The SOAP connector does not verify the correctness of the envelope returned by a callback operation. It is used as-is, so the callback operation is responsible for ensuring that it is well-formed and correct.