Bug #62952 [Fbk->NoF]: Methods from ServerClient cannot be used with ReflectionMethod
| From: | php-bugs at lists dot php dot net | Date: | Mon, 18 Feb 2013 00:36:00 +0000 |
| Subject: | Bug #62952 [Fbk->NoF]: Methods from ServerClient cannot be used with ReflectionMethod | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-177122@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62952&edit=1
ID: 62952
Updated by: php-bugs@lists.php.net
Reported by: gabriel dot heming at hotmail dot com
Summary: Methods from ServerClient cannot be used with
ReflectionMethod
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Reflection related
Operating System: Windows
PHP Version: Irrelevant
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2012-09-19 15:14:35] reeze@php.net
An extra comma was appended to the url, please try this:
https://gist.github.com/3750131
In short:
" The ReflectionMethod class reports information about a method."
if method didn't exists an exception was thrown when construct ReflectionMethod.
------------------------------------------------------------------------
[2012-09-19 15:08:05] reeze@php.net
Hi,
since call methods from a webservice like $client->method($args) is
a proxy method, it didn't exist in Soapclient, it use the magic method
Soapclient::__call() to the really work, so th method didn't exist at all
see: https://gist.github.com/3750131, it should been
a fatal error complain
method didn't exists.
could you please try the test script from the gist above?
------------------------------------------------------------------------
[2012-08-27 14:36:53] gabriel dot heming at hotmail dot com
Description:
------------
Well, I'm trying reflect a client of web service. When I use call_user_func_array
it works fine. But when I use ReflectionMethod, doesn't work. Is better you see:
Test script:
---------------
My variables:
$client = new SoapClient('http://localhost/webservice?wsdl');
$method = 'someMethod';
arguments = array('argument one' , 'argument two');
This code work fine:
return call_user_func_array(array($client , $method) , $arguments);
This code doesn't work
$reflectionMethod = new ReflectionMethod($client , $method);
return $reflectionMethod->invokeArgs($client , $arguments);
Expected result:
----------------
Return of function from ServerClient.
Actual result:
--------------
Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML
document in...
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62952&edit=1