Using Delphi 2007 I am trying to import an wsdl for client-side use.
I have imported the WSDL at https://services.rdc.nl/voertuigscan/2.0/wsdl
, which imports an xsd to define it's types. In the imported xsd, there are several additional imported and included xsd's, among which is defined the following type:
<xs:complexType name="BedragExtended">
<xs:simpleContent>
<xs:extension base="ct:Bedrag">
<xs:attribute name="Bron" type="Bron"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
The type ct:Bedrag is defined in an included XSD as:
<xs:simpleType name="Bedrag">
<xs:restriction base="xs:decimal">
<xs:totalDigits value="9"/>
<xs:fractionDigits value="2"/>
</xs:restriction>
</xs:simpleType>
However, the BedragExtended type is imported as:
// ************************************************************************ //
// XML : BedragExtended, global, <complexType>
// Namespace : http://nsp.rdc.nl/RDC/voertuigscan
// ************************************************************************ //
BedragExtended = class(TRemotable)
private
FBron: Bron;
FBron_Specified: boolean;
procedure SetBron(Index: Integer; const ABron: Bron);
function Bron_Specified(Index: Integer): boolean;
published
property Bron: Bron Index (IS_ATTR or IS_OPTN) read FBron write SetBron stored Bron_Specified;
end;
As you can see, there's no mention the underlying value of the Bedrag type, yet the header at the top of the .pas file generated by the wsdl import shows the correct xsd's have been parsed. How can I get Delphi to correctly generate the BedragExtended type?