|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-09-19 15:08 UTC] reeze@php.net
-Status: Open
+Status: Feedback
[2012-09-19 15:08 UTC] reeze@php.net
[2012-09-19 15:14 UTC] reeze@php.net
[2013-02-18 00:36 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 22:00:02 2025 UTC |
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...