Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.0, 1.8.1
-
Fix Version/s: 1.9.0
-
Component/s: Zend_Soap_Wsdl
-
Labels:None
Description
The ArrayOfTypeSequence WSDL strategy can only add arrays of basic xsd types like int, string, etc. Currently it is not possible to use it with singular complex types or arrays of complex types.
I know there is also an ArrayOfTypeComplex strategy, but it uses soap-enc:Array arrays while ArrayOfTypeSequence uses a sequence containing an unbounded element. The latter is WS-I Basic Profile 1.1 compliant, the former isn't but still commonly used, so it makes sense to have both. Additionally, ArrayOfTypeSequence supports multi-dimensional arrays (like MyComplexType[][]) while ArrayOfTypeComplex doesn't.
The patch attached to this issue adds support for complex types in ArrayOfTypeSequence the same way ArrayOfTypeComplex does: by extending the DefaultComplexType strategy and calling parent::addComplexType($type) when appropriate.
Now, I'm not sure this patch is the best way to do things... Ideally I think there should be 2 kinds of strategies in Zend_Soap_Wsdl: one for singular complex types, and one for arrays. But as it is, this patch is the easiest solution and it imitates what already exists in ArrayOfTypeComplex. Comments are welcome ![]()
Attachments
Issue Links
| This issue is dependecy of: | ||||
| ZF-6875 | "ArrayOfArrayOf..." to Zend_Soap_AutoDiscover / Zend_Soap_Wsdl |
|
|
|
Assigned to me