I can’t add new type with zend framework. I’ve tried this
$server = new Zend_Soap_Server('http://localhost/CycleProphet/amember/ws/index/wsdl');
$server->addComplexType('AMemberUser');
class AMemberUser
{
public $UserId;
public $FirstName;
public $LastName;
}
Type has been added, but it is empty. I use this article http://framework.zend.com/manual/en/zend.soap.wsdl.html#zend.soap.wsdl.types.add_complex, but it isn’t help me.
After your comment I decided to rewrite my answer and provide you some solution with wsdl:
Now you can add whatever class you want! But remember – your class should be well documented, because WSDL file is generated basing on this.
Hope it helps!