我在用DELPHI7加载一个WSDL的地址时出现WSDL中定义的结构不能被解析的问题,不知道问题出在了哪一步。WSDL地址是:http://cldiy.vmsee.com/axis2/services/rsong?wsdl,希望各位能给予帮助

解决方案 »

  1.   

    服务端的WSDL跟DELPHI不兼容吧,我用VS2005导入了一下,看到里面有几个泛型成员,例如public int? Price { set; get; }
      

  2.   

    我用DELPHI导入也是空的,注意DELPHI7生成代码里面的注释行:  // ************************************************************************ //
      // 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.
      // ************************************************************************ //
    不知道M$的soap toolkit是否能正常访问
    如果是自家的WSDL,可以改写一下输出类型
      

  3.   

    这个WSDL不是我这边写的,是对方的一个服务平台已经写好正常使用的,所以他们可能也不会去更改了。
      

  4.   

    还是换用.NET或者MS SOAP TOOLKIT看看吧