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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: f dot prato at wedoo dot it
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 14:01:29 2024 UTC