webservice.php and header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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,

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux