ID: 49495 User updated by: martin at spuetz dot net Reported By: martin at spuetz dot net -Status: Open +Status: Bogus Bug Type: SOAP related Operating System: Linux PHP Version: 5.3.0 New Comment:
I found the problem. It will work when you change the soap binding style to rpc. doesn't work: <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> works: <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> Greetings from Germany Martin Previous Comments: ------------------------------------------------------------------------ [2009-09-08 06:27:07] martin at spuetz dot net Description: ------------ I have two methods test1() and test2(), but PHP always runs the first one. You can see this on the following link: http://www.spuetz.net/client.php http://www.spuetz.net/source.txt It does works, when I add a parameter (change the method signature?): http://www.spuetz.net/client1.php http://www.spuetz.net/source1.txt The server is running 5.2.10 (http://www.spuetz.net/info.php), but I tried it with 5.3.0, too. The wsdl file was generated with Zend Studio. Reproduce code: --------------- class Testserver { public function test1() { return "test1"; } public function test2() { return "test2"; } } [...] var_dump($client->test1()); var_dump($client->test2()); Expected result: ---------------- string(5) "test1" string(5) "test2" Actual result: -------------- string(5) "test1" string(5) "test1" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49495&edit=1