From RAD Studio API Documentation
Jump to: navigation, search


function   ObjectToSOAP(RootNode, ParentNode: IXMLNode;  const ObjConverter: IObjConverter; const NodeName, NodeNamespace, ChildNamespace: InvString; ObjConvOpts: TObjectConvertOptions; out RefID: InvString): IXMLNode; override;


virtual Xml::Xmlintf::_di_IXMLNode __fastcall ObjectToSOAP(Xml::Xmlintf::_di_IXMLNode RootNode, Xml::Xmlintf::_di_IXMLNode ParentNode, const _di_IObjConverter ObjConverter, const System::UnicodeString NodeName, const System::UnicodeString NodeNamespace, const System::UnicodeString ChildNamespace, TObjectConvertOptions ObjConvOpts, /* out */ System::UnicodeString &RefID);


Type Visibility Source Unit Parent
function public
Soap.InvokeRegistry TSOAPAttachment


Converts this attachment object to its SOAP representation.

ObjectToSOAP customizes the way an application converts a TSOAPAttachment object to its SOAP representation. In TSOAPAttachment, ObjectToSOAP calls the inherited method, adding ocoDontSerializeProps and ocoDontPutTypeAttr to the ObjConvOpts flags so that the converter ignores the published properties and does not add type information to the generated node. It then generates a unique identifier for the attachment and calls the converter's AddAttachment method to properly generate the SOAP representation of the attachment.

RootNode is an ancestor of the generated node to which information about the 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 for the attachment.

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.

See Also