I am working on the Zend-framework-based Soap server, using AutoDiscovery to create wsdl file. It works all right for the either basic integers and strings or complex types based on these two primitives. However, I am unable to define my variables as date
type
Here is an example data file
<?php
namespace Soap;
class Data_Object_Period
{
/** @var string */
public $EndDate;
}
if I make it string, it in a wsdl file it looks like
<xsd:element name="EndDate" type="xsd:string" nillable="true"/>
But if I make it date
, I get an error
Cannot add a complex type date that is not an object or where class could not be found in "DefaultComplexType" strategy.
How can I add standard xsd date
type to AutoDiscover strategy?