Bug #79167 [NEW]: SoapServer doesn't work with document/literal (Procedure '' not present)

From: Date: Fri, 24 Jan 2020 14:47:07 +0000
Subject: Bug #79167 [NEW]: SoapServer doesn't work with document/literal (Procedure '' not present)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225103@lists.php.net to get a copy of this message
From:             szepczynski at gmail dot com
Operating system: Irrelevant
PHP version:      Irrelevant
Package:          SOAP related
Bug Type:         Bug
Bug description:SoapServer doesn't work with document/literal (Procedure '' not
present)

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];
}


-- 
Edit bug report at https://bugs.php.net/bug.php?id=79167&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=79167&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=79167&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=79167&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=79167&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=79167&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=79167&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=79167&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=79167&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=79167&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=79167&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79167&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=79167&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=79167&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=79167&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=79167&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=79167&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=79167&r=mysqlcfg


Thread (2 messages)

« previous php.bugs (#225103) next »