Passing a cookie to a webservice using SOAP

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

 



Hi can anyone tell me if it is possible to create a cookie and pass the
cookie in a header to a webservice. The cookie will be a sort of
parameter for the webservice. Is it something like this:


// Define the SAMS cookie and store value in header
Header ('setcookie: name=value') ;

require_once('nusoap/nusoap.php');

// Define the webservice's WSDL 
$serviceWSDL = "http://www.site/?WSDL";

//Create a SOAP client which references the Web Service
$soapclient = new soapclient($serviceWSDL, 'wsdl');

//Invoke the Web service's GetCustmisation function (cookie should
supply value)
$returnvalue  = $soapclientcall->('Function')

//Show $returnvalue  

Echo $returnvalue

Any help would be appreciated thanks
Steven




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

  Powered by Linux