Req #41804 [Com]: Add SoapServer header support
| From: | amin dot jabari242 at gmail dot com | Date: | Tue, 13 Dec 2022 05:31:23 +0000 |
| Subject: | Req #41804 [Com]: Add SoapServer header support | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-243121@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=41804&edit=1
ID: 41804
Comment by: amin dot jabari242 at gmail dot com
Reported by: snovak7 at gmail dot com
Summary: Add SoapServer header support
Status: Open
Type: Feature/Change Request
Package: SOAP related
Operating System: *
PHP Version: 5.2.3
Block user comment: N
Private report: N
New Comment:
Pleased to see your issue as I think I have the same problem
(https://www.surgecardinfo.net/)github.com
Previous Comments:
------------------------------------------------------------------------
[2011-03-21 08:35:14] tom at samplonius dot org
I don't believe this is a bug. If you want to perform HTTP Authentication on the SoapServer,
just do that before calling SoapServer::handle().
------------------------------------------------------------------------
[2007-06-25 17:33:18] snovak7 at gmail dot com
Description:
------------
When I send a SOAP Request to a server, I want to authenticate first for a Response, I have to send
credentials to "log" in. Normally this is part of Header. Since client has support to add
Header to a Request, there's lack of it on the server side. My suggestion is since normally
when you send a Request is a one time request that calls a function with argument, that there should
be added argument to that same function as the first argument, but only with header data and if
there's no header information then this argument should be null.
Reproduce code:
---------------
function server_code( $body, $header )
{
return $back;
}
$server = new SoapServer( 'somefile.wsdl' );
$server->addFunction( "server_code" );
$server->handle();
Expected result:
----------------
usable $header
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=41804&edit=1