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

From: Date: Wed, 14 Jun 2023 10:59:39 +0000
Subject: Bug #79167 [Com]: SoapServer doesn't work with document/literal (Procedure '' not present)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244690@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79167&edit=1

 ID:                 79167
 Comment by:         healthhospitalityblog at gmail dot com
 Reported by:        szepczynski at gmail dot com
 Summary:            SoapServer doesn't work with document/literal
                     (Procedure '' not present)
 Status:             Open
 Type:               Bug
 Package:            SOAP related
 Operating System:   Irrelevant
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[2020-01-24 14:47:07] 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];
}



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=79167&edit=1


Thread (2 messages)

« previous php.bugs (#244690) next »