Soap.SOAPHTTPTrans.THTTPReqResp.Execute
Delphi
procedure Execute(const DataMsg: String; Resp: TStream); overload; virtual;
procedure Execute(const Request: TStream; Response: TStream); overload; virtual;
function Execute(const Request: TStream): TStream; overload; virtual;
C++
virtual void __fastcall Execute(const System::UnicodeString DataMsg, System::Classes::TStream* Resp)/* overload */;
virtual void __fastcall Execute(System::Classes::TStream* const Request, System::Classes::TStream* Response)/* overload */;
virtual System::Classes::TStream* __fastcall Execute(System::Classes::TStream* const Request)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Soap.SOAPHTTPTrans.pas Soap.SOAPHTTPTrans.hpp |
Soap.SOAPHTTPTrans | THTTPReqResp |
Description
Executes a SOAP method call and returns the encoded results.
Execute implements the IWebNode method of the same name. THTTPRio uses this method to execute a method on an invokable interface that has been encoded as a SOAP method call.
1. Connects to the Web Service application identified by the URL property.
2. Creates an HTTP message with DataMsg or Request as its content and SoapAction as its SoapAction header.
3. Sends it to the Web Service application and retrieves the results.
4. Writes the results to the stream specified by Resp or returns a stream from which you can read the results. If using the third syntax, which returns a stream, the caller is responsible for freeing the stream object.