|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42086 SoapServer return Procedure '' not present for WSIBasic compliant wsdl
Submitted: 2007-07-24 14:13 UTC Modified: 2007-08-31 09:36 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sanderovich at avaya dot com Assigned: dmitry (profile)
Status: Closed Package: SOAP related
PHP Version: 5.2.3 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: sanderovich at avaya dot com
New email:
PHP Version: OS:


 [2007-07-24 14:13 UTC] sanderovich at avaya dot com
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:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="">
        <faultstring>Procedure 'firstFunctionWithoutParam' not present

despite the fact that the function exist in the return SoapServer::getFunctions()
    [0] => firstFunctionWithoutParam
    [1] => secondFunctionWithoutParam
    [2] => firstFunctionClassParam
    [3] => secondFunctionClassParam

Soap Data (from $HTTP_RAW_POST_DATA):
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="">

Soap data for Soap call with parameters:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="">

Thanks for your help

Reproduce code:
A zip file file SoapClient\Server can be found in following link


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-01 11:10 UTC]
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".
 [2007-08-15 01:26 UTC] michael dot tutty at gmail dot com
Here's a minimal WSDL that shows the problem:

Here's the class file I used to reproduce with the WSDL above:

Here's a test client script:
 [2007-08-15 01:47 UTC] 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 02:29 UTC] michael dot tutty at gmail dot com
This bug seems to be the root of the problem. Has it been fixed??
 [2007-08-15 06:12 UTC] sanderovich at avaya dot com
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.
 [2007-08-15 08:22 UTC]
Dmitry, feedback was given..
 [2007-08-31 09:36 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 12 12:01:29 2024 UTC