摘要:
一、Web Service程序创建1.新建Web Service工程,选择SOAP ServerApplication.2.选择Web AppDebugger executable,Class Name中添入类名“Demo1”.3.单击“Yes”按钮.4.Service name中添入“Main” .5.在”MainIntf”单元”IMain”接口下增加函数”functionGetMsg(AMsg: string): String; stdcall;”代码如下:{ Invokable interfaceIMain }unit MainIntf;interfaceusesInvokeRegist 阅读全文
摘要:
使用 CreateName 建立可直接指定根节点的名称varXmlDoc: TnativeXml;Node:TxmlNode;BeginXmlDoc := TNativeXml.CreateName('Data'); //创建根节点的语法 XmlDoc.XmlFormat := xfReadable;添加节点有以下几种方法:Node:=xmlDoc.Root.NodeNew(‘BasicDataNo’);Node.value:=’1’;XmlDoc.Root.NodeNew(‘name’).value:=’sam’;xmlDoc.Root.WriteString(‘sex’,’ 阅读全文