RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSOAPHeader.ObjectToSOAP Method

Converts this TSOAPHeader 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 TSOAPHeader descendant to its SOAP representation. In TSOAPHeader, ObjectToSOAP uses the default conversion (supplied by the ObjConverter parameter), adding a MustUnderstand attribute whose value reflects the value of the MustUnderstand property.  

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!