There is no way to set cookie on soap header - I use nuSOAP to do this. S.D.Price wrote: > 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 -- pozdrawiam Filip Serewa www.mobi.delfnet.pl -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php