SOAP - nillable=“true”
问题 I am building a web service using the Zend Framework. I am using the Zend_Soap_AutoDiscover class for the generation of my WSDL. I am using various complex type in this web service form example: StockItemEntity Class class StockItemEntity { /** @var string */ public $sStockCode; /** @var string */ public $sQty; public function __construct($sStockCode, $sQty){ $this->sStockCode = $sStockCode; $this->sQty = $sQty; } } WSDL Definition <xsd:complexType name="StockItemEntity"> <xsd:all> <xsd