[DUG] SOAP - wsdl import

Edward Koryagin ed_iv2001 at yahoo.co.nz
Wed May 10 15:23:42 NZST 2006


The element described in wsdl like this:

  <element name="search">
    <complexType>
    <sequence>
      <element maxOccurs="unbounded" name="positive"
type="impl:Attribute"></element>
      <element maxOccurs="unbounded" name="negative"
type="impl:Attribute"></element>
      <element name="start" type="xsd:int"></element>
      <element name="maxNodes"
type="xsd:int"></element>
    </sequence>
    </complexType>
  </element>

...So I'm expecting array for POSITIVE as property
( maxOccurs="unbounded" ), but BDS2006 creates...

search = class(TRemotable)
  private
    Fpositive: Attribute;
    Fnegative: Attribute;
    Fstart: Integer;
    FmaxResults: Integer;
    FmaxNodes: Integer;
  public
    constructor Create; override;
    destructor Destroy; override;
  published
    property positive: Attribute read Fpositive write
Fpositive;
    property negative: Attribute read Fnegative write
Fnegative;
    property start: Integer read Fstart write Fstart;
    property maxResults: Integer read FmaxResults
write FmaxResults;
    property maxNodes: Integer read FmaxNodes write
FmaxNodes;
  end;

and Attribute is:

Attribute = class(TRemotable)
  private
    Fstrength: Single;
    Ftype_: WideString;
    Fvalue: WideString;
  published
    property strength: Single read Fstrength write
Fstrength;
    property type_: WideString read Ftype_ write
Ftype_;
    property value: WideString read Fvalue write
Fvalue;
  end;

Where is a problem?

Cheers, Edward.


Edward Koryagin

Send instant messages to your online friends http://au.messenger.yahoo.com 


More information about the Delphi mailing list