|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-06-24 17:16 UTC] felipe@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: dmitry
[2013-07-31 12:34 UTC] dmitry@php.net
[2013-07-31 12:34 UTC] dmitry@php.net
-Status: Assigned
+Status: Closed
[2013-07-31 12:35 UTC] dmitry@php.net
[2014-10-07 23:17 UTC] stas@php.net
[2014-10-07 23:28 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 18:00:01 2025 UTC |
Description: ------------ SoapHeader::mustUnderstand are ignore in SoapServer context Test script: --------------- <?php class Tool{ public function TOKEN($id){ return new SoapHeader('namespace1', 'TOKEN', $id, true); } public function Method(){} } $input = $input = '<?xml version="1.0"?>'.PHP_EOL. '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="namespace1"'. ' xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'. ' xmlns:xsd="http://www.w3.org/2001/XMLSchema">'. '<SOAP-ENV:Header><ns1:TOKEN soapenv:mustUnderstand="1">abc</ns1:TOKEN></SOAP-ENV:Header>'. '<SOAP-ENV:Body><ns1:Method /></SOAP-ENV:Body></SOAP-ENV:Envelope>'; $soap = new SoapServer(null, array('uri' => '127.0.0.1')); $soap->setClass('Tool'); $soap->handle($input); $out = ob_get_contents(); ob_end_clean(); echo $out; ?> Expected result: ---------------- <ns1:TOKEN soapenv:mustUnderstand="1">abc</ns1:TOKEN> Actual result: -------------- <ns1:TOKEN>abc</ns1:TOKEN>