如何使用 Delphi Win32 编写 SOAP 1.2 客户端的最佳方式
到目前为止,没有任何 Delphi 版本支持 SOAP 1.2 客户端或服务器。
我已经尝试了几个星期让它工作,但每次出现新问题时,使用 VS/C# 我都可以做同样的事情,并在 3 天内完成工作,但我需要使用 Delphi 2009。
“我 使用Rem Objects SDK”,但结果并不比我使用 Delphi SOAP 库更好。
但我想知道我还有什么选择,哪个库/组件完全支持 SOAP 1.2?
我发现 Bruneau 发来的一条消息,建议使用 Pocket SOAP http://www.pocketsoap.com/pocketsoap/ 我不知道这是如何运作的,我会调查一下,看看我能做什么。
So far, no Delphi version supports SOAP 1.2 clients or server.
I have tried for weeks to make it works, but every time a new problem, with VS/C# I could do the same, and make works in 3 days, but I need to do with Delphi 2009.
"I write a new version using Rem Objects SDK,", but the result was not better that I had with Delphi SOAP library.
But I'm wondering what choice else do I have, which library/component full support SOAP 1.2?
I found a message from Bruneau, suggesting Pocket SOAP
http://www.pocketsoap.com/pocketsoap/
I don't know how this works, Ill investigate and see what I can do.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
请记住在 codegear 的 QC 上投票支持 SOAP 1.2:
http://qc.codegear。 com/wc/qcmain.aspx?d=66864
目前,它被评为 Delphi 的第二名报告(在支持 64 位之后)。 我确信 CodeGear 不会忽视这一点。
Remember to vote for SOAP 1.2 support on codegear's QC:
http://qc.codegear.com/wc/qcmain.aspx?d=66864
Currently, it's voted the #2 report for Delphi (after 64bit support). I'm really sure that CodeGear is not going to ignore this.
跟进。 这已在 Delphi 2010 中实现。
Follow up. This has been implemented in Delphi 2010.
我建议你深入研究源码。 使用 Delphi 7,我可以通过将 SOAP 代码复制到我的应用程序文件夹中并仔细编辑来添加各种额外功能。 在一种情况下,我做了一些字符串操作来调整传入的 SOAP 数据包,使其按照 Delphi 的工作方式工作。 我还没有必要对 RemObjects 执行此操作,但您也可以获得其源代码。 另外,他们还有活跃的新闻组,您可以在其中提问。
I suggest that you dig into the source. With Delphi 7, I was able to add all sorts of extras by copying the SOAP code into my app's folder and editing it carefully. In one case I did some string manipulation to adjust the incoming SOAP packet to make it work with the way Delphi worked. I've not had to do this with RemObjects yet, but you do get the source for that too. Plus they have active newsgroups you can ask questions on.
在某些情况下,我发现用 C# 和 VS 编写代理 SOAP 服务并通过简化的服务描述 (WSDL) 从 Delphi 中使用它要容易得多。 从长远来看,这是最有效的解决方案,没有任何稳定性或性能问题。 Delphi 中的 SOAP 支持并不是其亮点之一。
In some cases I found it much easier to write a proxy SOAP service in C# and VS, and consume it from Delphi with a simplified service description (WSDL). In the long term it was the most efficient solution, without any problems regarding stability or performance. The SOAP support in Delphi is not one of its highlights.