php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79167 SoapServer doesn't work with document/literal (Procedure '' not present)
Submitted: 2020-01-24 14:47 UTC Modified: -
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:3 (100.0%)
From: szepczynski at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: Irrelevant OS: Irrelevant
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: szepczynski at gmail dot com
New email:
PHP Version: OS:

 

 [2020-01-24 14:47 UTC] szepczynski at gmail dot com
Description:
------------
Hi,

I write Soap Webservice consuming by SAP which working only with Document/Literal style. When i change WSDL definition from RPC style to Document I'm starting receiving "Procedure XXX not present".

After change rpc/literal to document/literal I expected that everything will be works. I lookup to the extension source code to looking cause why my methods of class is not visible in SoapServer and found these line:
https://github.com/php/php-src/blob/master/ext/soap/soap.c#L3250

What is the reason of set function = NULL; when function has any parameter?

I write workaround making change like this:

Before:
public function updateCustomer(\stdClass $dataIn): \stdClass
{
    // 
}

After:
public function updateCustomer(): \stdClass
{
    $dataIn = func_get_args()[0];
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2023-06-14 10:59 UTC] healthhospitalityblog at gmail dot com
Health Hospitality Blog are sharing latest news about health, hospital, treatment, exercise, diet, food, weight loss etc. More info to visit: (https://healthhospitalityblog.com)github.com
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 08:01:28 2025 UTC