Re: Pear SOAP questions...

From: Date: Wed, 26 Jan 2005 00:46:54 +0000
Subject: Re: Pear SOAP questions...
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17155@lists.php.net to get a copy of this message
The setup steps for properly setting up your complex types is not as straight forward as it should be, so I can see why you are having troubles. For an array, you would do: $this->__typedef["{$namespace}TypeName"] = array( array('item' => "{$namespace}ArrayElement") ); In theory, you should be able to set session information in a Cookie and pass it in the HTTP headers. There are a few other options: - Run a stateless service and authenticate every request with HTTP Basic or Digest Authentication (note you can only implement digest on the PEAR SOAP Server side, the client doesn't support it). - Use session information as normal in the HTTP layer (i.e. cookie), again easier on the server side... would have to investigate if you could set the cookie information using CURL. - Use a SOAP header for passing a session ID around. The bonus this has is that you are transport independent and don't rely on HTTP for the sessions. Regards, Al On Mon, 2005-01-24 at 09:14 -0800, Stefan Klopp wrote: > Hello All, > > I have been messing around with the pear:soap implementation and had a few > questions. First off is there a way to pass hashes or arrays as input > variables via SOAP? Also how would they be represented via the > dispatch_type? I tried setting up a complex type but that did not work at > all. > > Also I was wondering if there was a way to use session data with PEAR:SOAP? > I know ext/soap allows you to set a persistent or something like that. > Anyway I have somewhat hacked my soap server to return session_ids and use > session_ids as an input variable on every function but that seems a bit > cumbersome. > > Anyway I appreciate any help you can give. > > Stefan >

« previous php.pear.general (#17155) next »