note 115460 added to soapserver.soapserver

From: Date: Mon, 28 Jul 2014 12:42:59 +0000
Subject: note 115460 added to soapserver.soapserver
Groups: php.notes 
Request: Send a blank email to php-notes+get-200061@lists.php.net to get a copy of this message
The ancient comment from "php dot net at juamei dot com" has misleading information about WSSE authentication. The logic is right: Accessing SOAP headers only requires a method with the name of the header, but, the WSSE header is "Security" not "UsernameToken" as shown in the following XML excerpt from a SOAP message captured off the wire: Then, the right way to get the WSSE credentials is: <?php public function Security( $header ){ $this->Authenticated = true; $this->Username = $header->UsernameToken->Username; $this->Password = $header->UsernameToken->Password; } ?> Of course,the method must be part of a class doing the processing logic for the SOAP service and it will be necessary to add logic to verify the credentials, but that is left as an exercise for the reader. ---- Server IP: 72.52.91.14 Probable Submitter: 150.214.40.58 ---- Manual Page -- http://php.net/manual/en/soapserver.soapserver.php Edit -- https://master.php.net/note/edit/115460 Del: integrated -- https://master.php.net/note/delete/115460/integrated Del: useless -- https://master.php.net/note/delete/115460/useless Del: bad code -- https://master.php.net/note/delete/115460/bad+code Del: spam -- https://master.php.net/note/delete/115460/spam Del: non-english -- https://master.php.net/note/delete/115460/non-english Del: in docs -- https://master.php.net/note/delete/115460/in+docs Del: other reasons-- https://master.php.net/note/delete/115460 Reject -- https://master.php.net/note/reject/115460 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200061) next »