本博客记录傻猫的生活、工作和学习,并与大家一起分享快乐.
该日志由 samool 发表于 2007-07-07 11:17 AM
该日志由 samool 发表于 2007-06-24 12:29 PM
Webservices offer a rich world of functionality. This world is available to the Delphi programmer with the introduction of the Webservice importer introduced in Delphi 6, with version 6.02 also available in Delphi pro. A webservice can work with pretty complex data, with .NET it is a snap to return and receive complete XML datasets. Delphi does not know how to work with these datasets natively. In this paper I will show how to work with .NET data using the GekkoDotNetDataset componenet.
该日志由 samool 发表于 2007-06-20 4:39 PM
利用SHFileOperation删除文件夹(含子目录)
该日志标签: shfileoperation, 删除, 文件夹, 目录, delphi
该日志由 samool 发表于 2007-01-11 9:03 AM
假设您已经在.net上建立了自己的webservice,目前只是想在delphi上实现对net上自己的webservice 接口的调用
1) 在你的工程中 new -> other 选择 webservices 这页
2) 选择其中的 wsdl importer 项
3) 在其中的wsdl source中填入你已经知道的wdsl地址,这里我填入我的地址是
http://192.168.0.123/hello/tijiaosj.asmx?wsdl
4) next后 就自动生成了一个unit
5) 这个unit中包含了你提供的url地址中的所有可用接口
其中 GetXXXXXSoap 这个函数返回了这些接口的class
在业务代码中只要写 GetXXXXXSoap.XXXfunction就可以了
6) 另外提当函数要操作中文的时候,记得修改GetXXXXXSoap,添加这条语句
RIO.HTTPWebNode.UseUTF8InHeader := True; //解决中文乱码问题
呵呵,很简单,对吧
最后,稍微改了一下Delphi生成的接口单元
改动的地方为:
7). 添加接口的执行选项默认为 ioDocument
如果是JAVA 接口, 将执行选项改为 ioLiteral 即可.
修改后的代码如下:
InvRegistry.RegisterInvokeOptions(TypeInfo(XcdsExPortType), ioDocument);
该日志标签: delphi, webservice, .net
该日志由 samool 发表于 2006-07-09 9:58 AM
该日志由 samool 发表于 2006-06-08 6:17 PM