|  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: -
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (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
Have you experienced this issue?
Rate the importance of this bug to you:

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

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:

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

I write workaround making change like this:

public function updateCustomer(\stdClass $dataIn): \stdClass

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


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Feb 24 20:01:27 2020 UTC