Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Zend_Soap_Server, Zend_Soap_Wsdl
-
Labels:None
Description
Zend_Soap_AutoDiscover: Duplicates an operation in WSDL for methods with parameters that are optional.
class Api {
/**
- Resets the bank account for the specified user
* - @param string $uid, the user for whom to reset the bank account
- @param int $vid, the version with which the specified user is associated
- @param string $bid, the bank account to be reset
- @param double $cash, optional default NULL, if not specified then the initial balance for the bank
- account will be used
- @return bool, TRUE if the reset was successful, otherwise FALSE
* - @unitTest = TRUE;
*/
public function bankReset( $uid, $vid, $bid, $cash = NULL ) { return $this->Banks->reset($uid, $vid, $bid, $cash = NULL); }
}
WSDL output:
<definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://api.bullbearings.co.uk/soap.php"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"
name="Api"
targetNamespace="...">
<portType name="ApiPort">
<operation name="bankReset">
<input message="tns:bankResetRequest"/>
<output message="tns:bankResetResponse"/>
</operation>
<operation name="bankReset">
<input message="tns:bankResetRequest"/>
<output message="tns:bankResetResponse"/>
</operation>
Issue Links
| This issue is dependecy of: | ||||
| ZF-2970 | Autodiscovery and WSDL Generation |
|
|
|
Please evaluate and categorize as necessary.