php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #52217 API manual for SOAP misses detail information for returned values
Submitted: 2010-07-01 09:34 UTC Modified: 2010-07-01 12:05 UTC
From: php_bugs at m-h-it dot de Assigned: rquadling (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: irrellevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php_bugs at m-h-it dot de
New email:
PHP Version: OS:

 

 [2010-07-01 09:34 UTC] php_bugs at m-h-it dot de
Description:
------------
I'm missing detailed information, what _exactly_ is returned from these methods:

http://de2.php.net/manual/en/soapclient.gettypes.php

http://de2.php.net/manual/en/soapclient.getfunctions.php

Documentation states for the latter: "Returns a list of available SOAP functions". 
What type are the elements of this list? Functions? Strings with function names? 
Other arrays with more detailed function descriptions?

Completing the useless examples (var_dump(..)) and also showing example output of 
that command would help a lot.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-07-01 11:15 UTC] rquadling@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&revision=300897
Log: Improve example for SoapClient::__getFunctions() & SoapClient::__getTypes(). Fix bug #52217
 [2010-07-01 11:16 UTC] rquadling@php.net
The _exact_ output is dependent upon the service.
 [2010-07-01 11:31 UTC] rquadling@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: rquadling
 [2010-07-01 11:42 UTC] php_bugs at m-h-it dot de
Are you sure?

Please note: I'm not talking about _which_functions_ are returned, but how a 
single item in the returned array looks like. From a test i see that e.g. 
__getFunctions() returns something like:

array(
  0 => 'LoginCustomerResponse loginCustomer(LoginCustomer $loginCustomer)',
  1 => ...

So each entry seems to be a string with a function signature. Now you say, this 
can be something else but a string, depending on the service?

If that's the case, it would be nice to have that documented to avoid confusion. 
I'm trying to build a WSDL parser. If the output of the mentioned methods can 
vary, they are quite useless.
 [2010-07-01 11:51 UTC] rquadling@php.net
In a few hours the documentation will be updated.

The "value" of the return will vary from service to service (obviously), the "format" though will be constant. Method signatures for __getFunctions() and SOAP type declarations for __getTypes().

The examples have been updated. Please see the svn commit http://svn.php.net/viewvc/?view=revision&revision=300897
 [2010-07-01 12:05 UTC] php_bugs at m-h-it dot de
Thanks, looks much better now. Even though i'd prefer to get a more useful output 
than strings. But that's another story (or ticket...).
 [2020-02-07 06:09 UTC] phpdocbot@php.net
Automatic comment on behalf of rquadling
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=9142ea15d99e1d4d7786713a7720e5351ca05d17
Log: Improve example for SoapClient::__getFunctions() & SoapClient::__getTypes(). Fix bug #52217
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 15:00:02 2026 UTC