webservice.php and header
| From: | (PHPDiscuss - PHP Newsgroups and mailing lists) | Date: | Mon, 01 Dec 2003 15:08:26 +0000 |
| Subject: | webservice.php and header | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1184@lists.php.net to get a copy of this message | ||
hi, i am using the following code to connect to web-service, but i fail to
connect cause of i cannt set header.
how can i set header?
( the lines i wrote with $k->header simply dont work, the xml that is
sending to the server without header at all)
<?php
require_once("webservice.php");
$k = WebService::ServiceProxy("address.asmx?WSDL");
$par=array('id'=>111,'desc'=>'blabla');
$headers = '<LoginHeader xmlns="aaa">' .
'<username xmlns="aaa" >222</username> <password
xmlns="bb">111</password></LoginHeader>';
$k->header=$headers;
$res = $k->call("procedure",array($par),"kk","hhh");
?>
thanks a lot,