Passing a cookie to a webservice using SOAP
| From: | S.D.Price | Date: | Fri, 17 Dec 2004 12:05:53 +0000 |
| Subject: | Passing a cookie to a webservice using SOAP | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1681@lists.php.net to get a copy of this message | ||
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