|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-13 04:21 UTC] felipe@php.net
-Package: Unknown/Other Function
+Package: SOAP related
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 19:00:01 2025 UTC |
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>