Delphi SOAP服务器 - 文件/文字 - 可能? [英] Delphi SOAP Server - Document/Literal - Possible?

查看:271
本文介绍了Delphi SOAP服务器 - 文件/文字 - 可能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用Delphi2005与Delphi2007补丁,还试用DelphiXE SOAP库。但是我已经打了一个麻烦...
我们有一个内部服务,我们的应用程序已经消耗了一年了。该服务使用文档/文字惯例,并被几个平台(java,.Net和我们的 - Delphi2005)上的几个系统使用。现在我们需要成为一个出版商,而不仅仅是一个消费者。所以我们正在建立一个服务器服务。而WSDL出来错了。我将官方WSDL作为文档/文字使用,当我尝试将其作为服务服务时,它作为RPC风格出现。即使我将HTTPSoapPascalInvoker.Converter的选项设置为[soLiteralParams,soDocument]。
现在我做了一些更多的搜索,我发现这样的语句:
Delphi for Win32不支持创建文档文字肥皂服务器。
[ http://www.experts-exchange .com / Programming / Languages / Pascal / Delphi / Q_22664248.html ]

We're using Delphi2005 with Delphi2007 patches, also experimenting with DelphiXE SOAP libraries. But I've hit a snag... We've got an internal service that our app has been consuming for a year now. The service uses document/literal convention, and is used by several systems on several platforms (java, .Net, and ours - Delphi2005). Now we need to become a publisher and not just a consumer. So we're building a server service. And the WSDL is coming out wrong. I consume the "official" WSDL as document/literal, and when I try to serve it back as a service, it comes out as RPC style. Even though I've set the options of the HTTPSoapPascalInvoker.Converter to be [soLiteralParams, soDocument]. Now that I do some more searching, I find statements like this: "Delphi for Win32 does not support creating Document Literal Soap Servers." [ http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_22664248.html ]

这个报价是几年前的。有谁知道它是否仍然适用?

我有能力将这部分项目移到Delphi2010或XE(如果有必要),但我宁愿(在我们的自动构建过程中抛出一个扳手) 。包括SOAP库是可以的,我们已经这样做了。

That quote is a few years old. Does anyone know if it still applies?
I AM in a position to move this portion of the project to Delphi2010 or XE if necessary, but I'd rather not (throws a wrench into our automated build process). Including the SOAP libs is ok, and we already do that.

所以,如果有人知道是否可以在2005年,2010年或XE中编写一个Win32 Delphi Web服务将生成符合文档/文字的WSDL,我会非常非常高兴。

So, if anyone knows whether it's possible to write a Win32 Delphi web service in 2005, 2010 or XE that will produce a WSDL that conforms to document/literal, I'd be very, very happy.

推荐答案

AFAIK,上次我检查,德尔福SOAP服务器的股票仅限于RPC,官方座右铭是您可以使用Delphi Prism来构建您的服务器(即我们不会在Delphi中添加Doc | Lit)。

,您可以使用最新的RemObjects SDK(不是免费的)构建一个Doc | lit SOAP服务器,或使用IndySOAP(开源),但是我不知道是否有与D2009兼容的版本(Unicode / Indy 10 )...

AFAIK, last time I checked, the stock Delphi SOAP Server was limited to RPC and the "official" motto was that you could use Delphi Prism to build your server (i.e. we won't add Doc|Lit in Delphi).
However, you can use the latest RemObjects SDK (not free) to build a Doc|lit SOAP Server, or use IndySOAP (open Source), but I don't know if there is a version compatible with D2009 and up (Unicode/Indy 10)...

这篇关于Delphi SOAP服务器 - 文件/文字 - 可能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆