RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THTTPReqResp.Execute Method (String, TStream)

Executes a SOAP method call and returns the encoded results.

Pascal
procedure Execute(const DataMsg: String; Resp: TStream); virtual; overload;
procedure Execute(const Request: TStream; Response: TStream); virtual; overload;
function Execute(const Request: TStream): TStream; virtual; overload;
C++
virtual __fastcall Execute(const AnsiString DataMsg, TStream Resp);
virtual __fastcall Execute(const TStream Request, TStream Response);
virtual __fastcall TStream Execute(const TStream Request);

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. 

Execute  

 

  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.

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!