我可以使用 Delphi 2010 构建 WCF 服务器吗?
我们希望构建多层新应用程序,我们可以将其作为 Web 服务来完成,但我们更喜欢使用 WCF 等更高级的功能,这在 datasnap 中也找不到。
我们可以用 Delphi 2010 win32 做到这一点吗?
客户端将是 Delphi win32、Asp.Net (C#),也许还有 Windows Mobile 手机。
We would like to build new application as multi tiers, we can do it as web service, but we prefer to use more advanced features as WCF, which not found in datasnap too.
can we do that with Delphi 2010 win32?
the clients will be Delphi win32, Asp.Net (C#) and maybe windows mobile phones too.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用 Delphi Prism,您可以参见 http://www.drbob42.com/examines/examinB4.htm
Using Delphi Prism you can, see http://www.drbob42.com/examines/examinB4.htm
由于 WCF 是一种仅限 .NET 的技术,因此您需要从非托管 Win32 世界到托管 .NET 世界的桥梁。
有几个选项可以开始。
所有这些都感觉像是拼凑而成,因此最好问自己一个问题:“WCF 的哪些功能比 Web 服务如此引人注目?”
代码如下:
最后一个可能是您真正想要的:
它可以做的事情比 Web 服务多得多,但不像 WCF 那样受到平台限制。
——杰罗恩
Since WCF is a .NET only technology, you will need to bridge to cross from the unmanaged Win32 world to the managed .NET world.
There are a few options to get started.
All of them feel kludge-like, so it might be better to ask yourself the question "what features of WCF are so compelling over web services?"
Here it goes:
The last one might be the real one you are after:
it can do much more than web-services, but is not as platform limited as WCF is.
--jeroen
WCF 是 .NET 的一部分,您需要 .NET 语言使用它:没有“Win32”语言可以做到这一点。德尔福棱镜可以!
WCF is a part of .NET, you need an .NET language to use it: No "Win32" language can do it. Delphi Prism can!