From: jeroen at asystance dot nl Operating system: linux PHP version: 5.2SVN-2009-08-05 (snap) PHP Bug Type: SOAP related Bug description: SoapServer calls wrong function, although "SOAP action" header is correct
Description: ------------ When two <wsdl:operation>s have the same API (that is, have the same <wsdl:message>s), the SoapServer calls the function corresponding to the _first_ <wsdl:operation> specified in the <wsdl:binding>, even although the SoapClient sends the correct "SOAP action" header, which is correctly received on the server. Reproduce code: --------------- Download http://jayvee.nl/soaptest2.tar, untar and change the URL in interface.wsdl call SAOPTest.php, which is both a client and server. The server will produce a log that the client outputs, so you can see what the server is doing. Expected result: ---------------- Independent of the order in which the <wsdl:operation>s are listed in the <wsdl:binding> element, the SoapServer should call the function corresponding to the "SOAP action" header specified in the request. Actual result: -------------- The SoapServer always calls the function corresponding to the _first_ <wsdl:operation> specified. In the test case, the server will call "function operation1()" twice, even though the second call is to operation2, and the "SOAP action" header's value is "operation2" To verify, switch the <wsdl:operation> elements in the <wsdl:binding> element and run SOAPTest.php. You will see that the server will call "function operation2()" twice, even though the "SOAP action" headers are different. -- Edit bug report at http://bugs.php.net/?id=49169&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49169&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49169&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49169&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49169&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49169&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49169&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49169&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49169&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49169&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49169&r=support Expected behavior: http://bugs.php.net/fix.php?id=49169&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49169&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49169&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49169&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49169&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49169&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49169&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49169&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49169&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49169&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49169&r=mysqlcfg