我使用 \Zend\Soap\AutoDiscover 类从服务类生成肥皂服务的 wsdl。我描述了文档块中的属性类型。但是,我必须描述选择元素 (xsd:choice) 但我不知道如何?
<xsd:complexType name="PaymentModeType">
<xsd:sequence>
<xsd:element name="mode" type="xsd:unsignedLong" />
<xsd:choice>
<xsd:element name="check" type="CheckType"/>
<xsd:element name="balance" type="BalanceType"/>
<xsd:element name="money_transfer_received" type="MoneyTransferReceivedType"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
谢谢你的帮助。