|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #41804 Add SoapServer header support
Submitted: 2007-06-25 17:33 UTC Modified: 2011-02-21 21:02 UTC
Avg. Score:4.1 ± 1.2
Reproduced:6 of 7 (85.7%)
Same Version:5 (83.3%)
Same OS:5 (83.3%)
From: snovak7 at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.2.3 OS: *
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:
Solve the problem:
20 + 10 = ?
Subscribe to this entry?

 [2007-06-25 17:33 UTC] snovak7 at gmail dot com
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" );


Expected result:
usable $header


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-21 21:02 UTC]
-Package: Feature/Change Request +Package: SOAP related -Operating System: All +Operating System: *
 [2011-03-21 08:35 UTC] 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().
 [2022-12-13 05:31 UTC] amin dot jabari242 at gmail dot com
Pleased to see your issue as I think I have the same problem (
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 15:01:28 2024 UTC