ZF-5995: Zend_Soap_AutoDiscover - mutiple return parameters

Issue Type: Improvement Created: 2009-03-11T09:14:39.000+0000 Last Updated: 2012-11-20T20:52:58.000+0000 Status: Closed Fix version(s): Reporter: Denis Baklikov (denis.baklikov) Assignee: None Tags: - Zend_Soap_Wsdl

Related issues: - ZF-5994



Zend_Soap_AutoDiscover does not support mutiple return parameters.

Currently "autodiscover" can generate only one output parameter in WSDL, which called ??Return?? It gets return type from phpDoc of the method using Reflection. PHP's "reflection method" can have only one return parameter.

There is another implementation of multiple return parameters in soap server library. It is using associative array as return type.

Here is a part of the PHP manual… {quote} Note: functions must receive all input arguments in the same order as defined in the WSDL file (They should not receive any output parameters as arguments) and return one or more values. To return several values they must return an array with named output parameters. {quote}

Generated WSDL has following structure {quote} {quote}

But it should be like this {quote} {quote}

Can you add this functionality to Zend_Soap_AutoDiscover, please?


Posted by Benjamin Eberlei (beberlei) on 2009-03-11T16:32:29.000+0000

If you propose a good syntax for multiple parameters, i can add this.

Multiple @return seems very ugly and would raise complaints from PHP CodeSniffer in every coding standard i know. Using @return type1|type2 is not possible, since this syntax is hinting at different types of a single return value.

Posted by Rob Allen (rob) on 2012-11-20T20:52:58.000+0000

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.