RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IHTTPSoapDispatch.DispatchSOAP Method

Interprets an incoming SOAP message, calls the target interface, and encodes any return values.

Pascal
procedure DispatchSOAP(const Path: WideString; const SoapAction: WideString; const Request: TStream; Response: TStream; var BindingType: TWebServiceBindingType);
C++
__fastcall DispatchSOAP(const BSTR Path, const BSTR SoapAction, const TStream Request, TStream Response, TWebServiceBindingType BindingType);

DispatchSOAP interprets a SOAP message, executes the interface call it represents, and encodes any return values as a SOAP string. 

Path is the path portion of the URL to which the incoming request message was addressed. 

SoapAction is the content of the SOAP Action header of the incoming HTTP request message. 

Request is a stream from which DispatchSOAP can read the content of the incoming request message. It contains the SOAP encoding of an interface call. 

Response is a stream to which DispatchSOAP writes the content for the outgoing response message. DispatchSoap fills it out with the SOAP encoding of any return values. 

BindingType indicates the format of the Request and Response. It is either btSOAP (to indicate a SOAP packet) or btMime (for a multipart form when the request or response includes attachments). On entry, BindingType indicates the format of the encoded request message. DispatchSOAP changes BindingType to the format of the response message. 

 

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