|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66508 The function executes error
Submitted: 2014-01-17 16:33 UTC Modified: 2014-01-19 14:54 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: lyroe_chan at hotmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.5.8 OS: ubuntu 13.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: lyroe_chan at hotmail dot com
New email:
PHP Version: OS:


 [2014-01-17 16:33 UTC] lyroe_chan at hotmail dot com
From manual page:
The SoapClient::SoapHeader() doesn't work as it declares in document.

Test script:
$wsdl = '';
$client = new SoapClient($wsdl, array('trace' => true));

$var = array(
		'LoginName' => 'xxxx',
		'Password'  => 'yyyy',
$ns = '';
$soapheadervar = new SoapVar($var, SOAP_ENC_OBJECT, null, null, null);
$soapheader = new SoapHeader($ns, 'AuthenticationHeader', $soapheadervar);

$body = array(...);
$response = $client->SomeFunction($body);
echo "Request:\n".$client->__getLastRequest()."\n";
echo "Response:","\n",$client->__getLastResponse(),"\n";

Expected result:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:ns1="">
    <m:AuthenticationHeader xmlns:m=''>

Actual result:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:ns1="" xmlns:ns2="">


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-19 14:54 UTC]
-Summary: The functioin executes error +Summary: The function executes error
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Jun 06 04:03:38 2023 UTC