From:             
Operating system: irrelevant
PHP version:      5.2.13
Package:          SOAP related
Bug Type:         Feature/Change Request
Bug description:More useful return values for SoapClient::__getFunctions() / 
__getTypes()

Description:
------------
SoapClient::__getFunctions() / SoapClient::__getTypes() now return both an
array 

of strings. Each string contains a function signature or a structure
description 

respectively. So it's hard to really use this information programmatically.
You 

have to parse the strings into something useful first. 



It would be more useful to get a nested array with all information from the


WSDL. For example __getFunctions() now delivers this:



array (

  0 => 'LoginCustomerResponse loginCustomer(LoginCustomer
$loginCustomer)',

  1 => 'FindCustomerResponse findCustomer(FindCustomer $findCustomer)',

  ...

)



it's easier to use this:



array (

  array(

    'name'=>'loginCustomer',

    'returnType'=>'LoginCustomerResponse',

    'arguments'=>array(

      array('name'=>'loginCustomer'),

      array('type'=>'LoginCustomer')

    )

  ),

  array(

    'name'=>'findCustomer',

    'returnType'=>'FindCustomerResponse',

    'arguments'=>array(

      array('name'=>'findCustomer'),

      array('type'=>'FindCustomerResponse')

    )

  ),

...

)



To keep BC i suggest to use default argument:



SoapClient::__getFunctions($asStrings=true) 

SoapClient::__getTypes($asStrings=true)


-- 
Edit bug report at http://bugs.php.net/bug.php?id=52219&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52219&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52219&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52219&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52219&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52219&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52219&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52219&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52219&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52219&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52219&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52219&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52219&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52219&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52219&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52219&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52219&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52219&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52219&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52219&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52219&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52219&r=mysqlcfg

Reply via email to