My first parameter for Zend_Soap_AutoDiscover is an instance of 
Zend_Soap_Wsdl_Strategy_ArrayOfTypeComplex. But it seems that it will only be 
used for top-level classes. Not for its properties.

-------- Original-Nachricht --------
> Datum: Mon, 24 Nov 2008 13:32:21 +0100
> Von: Benjamin Eberlei <[EMAIL PROTECTED]>
> An: Jan Pieper <[EMAIL PROTECTED]>
> Betreff: Re: [fw-general] Zend_Soap_Wsdl: nested objects possible?

> 
> it is possible:
> 
> http://framework.zend.com/manual/en/zend.soap.wsdl.html#zend.soap.wsdl.types.add_complex
> 
> you have to use Zend_Soap_Wsdl_Strategy_ArrayOfTypeSequence strategy for
> detection.
> 
> On Mon, 24 Nov 2008 13:13:27 +0100, "Jan Pieper" <[EMAIL PROTECTED]> wrote:
> > Is it possible to create nested objects with Zend_Soap_Wsdl to use for
> WSDL
> > generation? I tried someting like this:
> > 
> > --- SNIP ---
> > 
> > class MyFooResult
> > {
> >     /**
> >      * @var MyFooSubResult[]
> >      */
> >     public $sub;
> > 
> >     /* ... */
> > }
> > 
> > --- SNAP ---
> > 
> > ...but I am getting an Zend_Soap_Wsdl_Exception with following message:
> > 
> >> Cannot add a complex type MyFooSubResult[] that is not an object or
> > where class could not be found in 'DefaultComplexType' strategy.
> > 
> > This exception will be caused because
> > Zend_Soap_Wsdl_Strategy_DefaultComplexType is used for class properties
> and
> > it searchs for a class named "MyFooSubResult[]".
> > 
> > Am I doing something wrong or is it impossible (at the moment?) to use
> > nested objects for WSDL generation?
> > 
> > -- Jan
> > --
> > Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit
> allen:
> > http://www.gmx.net/de/go/multimessenger

-- 
Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a

Reply via email to