使用德尔福2007我想导入一个WSDL的客户端使用。德尔福WSDL导入不解析扩展派生的类型
我已经导入了WSDL https://services.rdc.nl/voertuigscan/2.0/wsdl
,它导入了一个xsd来定义它的类型。在导入的XSD,有几个附加的导入和包含XSD的,其中被定义以下类型:
<xs:complexType name="BedragExtended">
<xs:simpleContent>
<xs:extension base="ct:Bedrag">
<xs:attribute name="Bron" type="Bron"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
类型CT:Bedrag是在包括XSD定义为:
<xs:simpleType name="Bedrag">
<xs:restriction base="xs:decimal">
<xs:totalDigits value="9"/>
<xs:fractionDigits value="2"/>
</xs:restriction>
</xs:simpleType>
然而,该BedragExtended类型导入为:
// ************************************************************************ //
// 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;
正如你所看到的,有没有提到Bedrag类型的潜在价值,但在.PAS文件根儿的顶部的标题由wsdl导入显示正确的xsd已被解析。我怎样才能让Delphi正确地生成BedragExtended类型?
可能不相关,但我有一个导入WSDL的错误和[我不得不求助于内联](http://stackoverflow.com/questions/10264057/delphi-xml-data-bindings-error-unknown-datatype )文件而不是包括。 – 2012-08-14 14:01:08