Zend Framework

Zend_Soap_AutoDiscover: Duplicates an operation in WSDL for methods with parameters that are optional

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • 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

Activity

Hide
Wil Sinclair added a comment -

Please evaluate and categorize as necessary.

Show
Wil Sinclair added a comment - Please evaluate and categorize as necessary.
Hide
Alexander Veremyev added a comment -

Fixed.

Show
Alexander Veremyev added a comment - Fixed.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: