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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
37 + 25 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC