Re: Passing a cookie to a webservice using SOAP

From: Date: Sat, 08 Jan 2005 15:49:30 +0000
Subject: Re: Passing a cookie to a webservice using SOAP
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-1688@lists.php.net to get a copy of this message
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

« previous php.soap (#1688) next »