php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51754 SoapHeaders not set correctly
Submitted: 2010-05-06 10:32 UTC Modified: 2010-05-13 04:21 UTC
From: f dot prato at wedoo dot it Assigned:
Status: Open Package: SOAP related
PHP Version: 5.2.13 OS:
Private report: No CVE-ID: None
 [2010-05-06 10:32 UTC] f dot prato at wedoo dot it
Description:
------------
hello, 

can't set the headers the right way when using SoapClient class.



Test script:
---------------
<?
$Binding = new SoapClient($conf->wsdl2, array('trace' => 1));
$header = array('tick'=>$UPS_TICKET);
$Header = new SoapHeader(WSDL, 'getTicket', $header);
$Binding->__setSoapHeaders(array($Header));?>

Expected result:
----------------
<SOAP-ENV:Header>
    <ns1:getTicket>
        <ns1:tick>ticket</ns1:tick>
    </ns1:getTicket>
</SOAP-ENV:Header>

Actual result:
--------------
<SOAP-ENV:Header>
	<ns2:getTicket>
		<item>
			<key>tick</key>
			<value>ticket</value>
		</item>
	</ns2:getTicket>
</SOAP-ENV:Header>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-13 04:21 UTC] felipe@php.net
-Package: Unknown/Other Function +Package: SOAP related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 08 10:01:28 2024 UTC