SOAP Client addHeader Problem
| From: | Martin Hesse | Date: | Fri, 23 Jan 2004 14:42:50 +0000 |
| Subject: | SOAP Client addHeader Problem | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-10332@lists.php.net to get a copy of this message | ||
Hello,
I want to include a SOAP_Header with every request sent to the server. I am using the addHeader-method of my SOAP_Client. This works great for the very first call but then on a second call the header is not sent again. To my understanding, the SOAP_Header should be included in every call made by the client and not just the first one.
$client = new SOAP_Client();
$header = new SOAP_Header();
$client->addHeader($header);
$client->call(....); // Header is sent
$client->call(....); // Header is not sent ????
Any idea how to have the header sent on every call?
Thanks,
Martin