Search code examples
web-servicesdelphiwsdldelphi-7soap-client

WSDL import issue in delphi


I have a WSDL URL: http://www.persiansms.info/webservice/smsService.php?wsdl

when I try to generate interface with Delphi WSDL Importer, Delphi generates this warning:

  // ************************************************************************ //
  // 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 Embarcadero types; however, they could also
  // indicate incorrect WSDL documents that failed to declare or import a schema type.
  // ************************************************************************ //
  // !:int             - "http://www.w3.org/2001/XMLSchema"[]
  // !:ArrayOf_xsd_long - "http://www.w3.org/2001/XMLSchema"[]
  // !:string          - "http://www.w3.org/2001/XMLSchema"[]
  // !:array           - "http://www.w3.org/2001/XMLSchema"[]

so, array of what?? the WSDL document never mentioned what type it has, for example:

<part name="note" type="xsd:array"/>

I am confused, is it a bug in delphi? or is the WSDL document incomplete? A C# program works well with it, but I don't have the source code.

what should I do then? Is it possible to find out what that is?


Solution

  • we can fix that problem with this type should be replace by "Array;" :

    T2dArray = array of array of WideString;

    maybe it can help others. i am testing that, still it works!