#45521 [NEW]: SoapClient is not working with wsi compliant web services
From: sanderovich at avaya dot com Operating system: PHP version: 5.2.6 PHP Bug Type: SOAP related Bug description: SoapClient is not working with wsi compliant web services Description: Hello All, I am trying to use soap php's soap client(version 5.2.6) with axis 1.4. The axis's wsdl is WSI compliant and doc\literal\wrapped. The problem is that the soap client does not create the soap body correctly, e.g it uses SOAP-ENC structures(both on wsdl and on non-wsdl modes). For example, the following php structure: stdClass Object ( [pagingFilteringSortingParameters] => stdClass Object ( [startItemIndex] => 0 [endItemIndex] => 34 [filterList] => Array ( [0] => filterList Object ( [fieldName] => IPAddress [fieldValue] => 149 [filterType] => likeFilterType ) [1] => filterList Object ( [fieldName] => gatewayType [fieldValue] => i40 [filterType] => likeFilterType ) ) ) ) is translated into the following soap body: 0 34 IPAddress 149 likeFilterType gatewayType i40 likeFilterType Instead of the following structure: http://xml.avaya.com/im/decm/guiws/07062006";> 0 34 IPAddress 149 likeFilterType gatewayType i40 likeFilterType branchName true What i suggest is to add a flag to the soapClient\SoapServer feature flag that will use the array name instead of SOAP-ENC:Struct. The same rule should apply for arrays. If anyone wishes to reproduce this problem, please send an email to [EMAIL PROTECTED] and i will send the source codes. Thanks, Oren -- Edit bug report at http://bugs.php.net/?id=45521&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45521&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45521&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45521&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45521&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45521&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45521&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45521&r=needscript Try newer version:http://bugs.php.net/fix.php?id=45521&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45521&r=support Expected behavior:http://bugs.php.net/fix.php?id=45521&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45521&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45521&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=
#42086 [NoF->Opn]: SoapServer return Procedure '' not present for WSIBasic compliant wsdl
ID: 42086 User updated by: sanderovich at avaya dot com Reported By: sanderovich at avaya dot com -Status: No Feedback +Status: Open Bug Type: SOAP related Operating System: linux PHP Version: 5.2.3 Assigned To: dmitry New Comment: I believe that there are here two different problems. The first is that the Soap client does not create the SoapBody correctly for a function without parameters(the SoapBody is empty), that's why my SoapClient includes the following lines: if ( $parameters == null) { $return = $itc_client->__soapCall($methodName, array(new SoapParam(null, $methodName)), null, $security_header); // $return = $itc_client->__soapCall($methodName, array(), null, $security_header); } The second problem is in the SoapServer that does recognize functions without parameters. Previous Comments: [2007-08-15 02:29:37] michael dot tutty at gmail dot com This bug seems to be the root of the problem. Has it been fixed?? http://bugs.php.net/bug.php?id=30302 [2007-08-15 01:47:52] michael dot tutty at gmail dot com Also, the zip file referenced by the O.P. is available as of two minutes ago. Must have been a temporary outage. [2007-08-15 01:26:53] michael dot tutty at gmail dot com Here's a minimal WSDL that shows the problem: http://pastebin.com/m18b5d1fc Here's the class file I used to reproduce with the WSDL above: http://pastebin.com/m28bdf0f0 Here's a test client script: http://pastebin.com/m303880eb [2007-08-09 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2007-08-01 11:10:27] [EMAIL PROTECTED] I am not able to get code. Link doesn't work. "The file you are requesting is not accesible due to a hardware or ISP problem. Please retry Later". The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/42086 -- Edit this bug report at http://bugs.php.net/?id=42086&edit=1
#42086 [NEW]: SoapServer return Procedure '' not present for WSIBasic compliant wsdl
From: sanderovich at avaya dot com Operating system: linux PHP version: 5.2.3 PHP Bug Type: SOAP related Bug description: SoapServer return Procedure '' not present for WSIBasic compliant wsdl Description: When using WSI Basic compliant wsdl, a call to functions without parameters return procedure xxx not found despite the fact that the function exist(they exist both in the wsdl and in the array returned by SoapServer::getFunctions()). Functions with parameters are being executed correctly. For example: A Soap call to : firstFunctionWithoutParam() return the following SoapFault: http://schemas.xmlsoap.org/soap/envelope/";> SOAP-ENV:Server Procedure 'firstFunctionWithoutParam' not present despite the fact that the function exist in the return SoapServer::getFunctions() Array ( [0] => firstFunctionWithoutParam [1] => secondFunctionWithoutParam [2] => firstFunctionClassParam [3] => secondFunctionClassParam ) Soap Data (from $HTTP_RAW_POST_DATA): http://schemas.xmlsoap.org/soap/envelope/";> Soap data for Soap call with parameters: http://schemas.xmlsoap.org/soap/envelope/";> oren one two Thanks for your help Reproduce code: --- A zip file file SoapClient\Server can be found in following link http://myfreefilehosting.com/f/bf039ff168_0.1MB -- Edit bug report at http://bugs.php.net/?id=42086&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42086&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42086&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42086&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42086&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42086&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42086&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42086&r=needscript Try newer version:http://bugs.php.net/fix.php?id=42086&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42086&r=support Expected behavior:http://bugs.php.net/fix.php?id=42086&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42086&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42086&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42086&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42086&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42086&r=dst IIS Stability:http://bugs.php.net/fix.php?id=42086&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42086&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42086&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42086&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42086&r=mysqlcfg