|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-02-21 21:02 UTC] jani@php.net
-Package: Feature/Change Request
+Package: SOAP related
-Operating System: All
+Operating System: *
[2011-03-21 08:35 UTC] tom at samplonius dot org
[2022-12-13 05:31 UTC] amin dot jabari242 at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 06:00:02 2025 UTC |
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