我在生产中的现有服务中添加了一个 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 客户端可以很好地使用此服务。该服务正在使用 complexTypes,但它们在文件中,并且它们是较新的拆分为多个文件以供 xsd 导入。
在 Delphi 7 中有什么方法可以做到这一点?我什至尝试将所有导入的类型拉回 1 个 wsdl 文档。没有不同。
谢谢,大卫