Soap.TypeTrans.TTypeTranslator.CastSoapToVariant

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure  CastSoapToVariant(SoapInfo: PTypeInfo; const SoapData: InvString; NatData: Pointer); overload;
function   CastSoapToVariant(SoapInfo: PTypeInfo; const SoapData: InvString): Variant; overload;

C++

void __fastcall CastSoapToVariant(System::Typinfo::PTypeInfo SoapInfo, const System::UnicodeString SoapData, void * NatData)/* overload */;
System::Variant __fastcall CastSoapToVariant(System::Typinfo::PTypeInfo SoapInfo, const System::UnicodeString SoapData)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Soap.TypeTrans.pas
Soap.TypeTrans.hpp
Soap.TypeTrans TTypeTranslator

Description

Converts a SOAP string to a variant variable that encapsulates the corresponding native variable.

CastSoapToNative converts the SOAP string representation of a simple type to the corresponding native variable. (A variable of a simple type should fit in a single XML text element.)

The parameters are described in the following table:

Parameter Significance
SoapInfo Native type RTTI (this is how the native type is specified).
SoapData SOAP string that should represent the native value.
NatData Pointer to a memory region that should represent the variant data (this is where the native value is written). See PVarData. In case this parameter is not specified, the conversion result is returned as a variant variable.

See Also