RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLData.ObjectToSOAP Method

Converts this remotable object to its SOAP representation.

Pascal
function ObjectToSOAP(RootNode: IXMLNode; ParentNode: IXMLNode; const ObjConverter: IObjConverter; const Name: InvString; const URI: InvString; ObjConvOpts: TObjectConvertOptions; out RefID: InvString): IXMLNode; override;
C++
virtual __fastcall IXMLNode ObjectToSOAP(IXMLNode RootNode, IXMLNode ParentNode, const IObjConverter ObjConverter, const InvString Name, const InvString URI, TObjectConvertOptions ObjConvOpts, InvString RefID);

Override ObjectToSOAP to customize the way your application converts a TRemotable descendant to its SOAP representation. In TRemotable, ObjectToSOAP simply calls the ObjInstanceToSOAP method of the converter that is supplied by the ObjConverter parameter.  

RootNode is an ancestor of the generated node to which information about the generated node can be added as attributes.  

ParentNode is the node in the SOAP representation that should act as a parent to the node that ObjectToSOAP generates.  

ObjConverter is the interface of the default converter that translates between remotable objects and their SOAP representation. This is the interface to a TOPToSoapDomConvert instance.  

Name is the name of the node that is generated.  

URI is the URI for the namespace in which Name is defined.  

ObjConvOpts are flags that customize the way the node is serialized.  

RefID returns a reference ID for the node. This is used if the node is multi-referenced.  

ObjectToSOAP returns the XML for the newly generated node. 

 

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