使用 basicHttpBinding 的 Delphi 7 Soap WCF 服务
我将 basicHttpBinding 添加到生产中的现有服务中,以便将其公开以供在 Delphi 中使用。
当我尝试在 wsdl 文件上使用 Delphi 7 中的 WSDLImporter 时,它无法正常工作。
生成的 tlb 中的一部分表示
// ************************************************************************ //
// The following types, referred to in the WSDL document are not being represented
// in this file. They are either aliases[@] of other types represented or were referred
// to but never[!] declared in the document. The types from the latter category
// typically map to predefined/known XML or Borland types; however, they could also
// indicate incorrect WSDL documents that failed to declare or import a schema type.
// ************************************************************************ //
.NET 客户端可以正常使用此服务。该服务正在使用复杂类型,但它们位于文件中,并且它们是较新的拆分为多个文件以供 xsd 导入的文件。
在 Delphi 7 中有什么方法可以做到这一点吗?我什至尝试将所有导入的类型拉回 1 个 wsdl 文档。没有区别。
谢谢, 大卫
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
第一个猜测是 WCF 服务是 SOAP 1.2,Delphi 2010 中添加了对此的支持。
对于 Delphi 7,您可以尝试 这个问题。
——杰罗恩
First guess is that the WCF service is SOAP 1.2, for which support was added in Delphi 2010.
For Delphi 7, you could try some of the answers to this question.
--jeroen
我知道这很旧(非常),但它可能会帮助其他人解决这个问题,就像我们使用 WCF 与 Delphi 的互操作性一样。
在我自己的经验中,最重要的是
我们的 WsdlImp 命令如下所示:
I know this is old (very) but it might help someone else out struggling through this like we were with WCF interoperability with Delphi.
What made the difference in my own experience was
Here is an what our WsdlImp command looks like: