Can you elaborate on how you access application without using rpc
calls. I do it the following way:
- create empty test file and require service class (actual
implementation of service, which is to be passed to setClass() of
Zend_XmlRpc_Server())
- then instantiate the object of that class, and call the method that
is to be called remotely
If there's some errors they are displayed. If no errors occur, only
then I try to use Zend_XmlRpc_Client: and catch all possible exceptions:
require_once 'Zend/Debug.php';
require_once 'Zend/XmlRpc/Client.php';
$client = new Zend_XmlRpc_Client('URI_TO_XMLRPC_SERVER');
try {
$response = $client->call('service.method', array());
Zend_Debug::dump($response);
} catch (Exception $e){
die($e->getMessage());
}
Are there any warnings produced on one of this stages?
Ingmar Heinrich wrote:
Well, if I access the application without XmlRpc, I see that the
exception is thrown. Also, I am requiring Zend/Auth/Exception.php in
the file that is throwing the exception as well as in the file that
serves the XmlRpc request - which catches the Zend_Auth_Exception.
On Mon, Feb 25, 2008 at 1:42 PM, Victor Farazdagi
simple.square@... wrote:
Hi,
Are you sure that Zend_Auth_Exception is actually available to your
server file (included/required)? If you do not use __autoload() that
might be a problem - exception of Zend_Auth_Exception kind is to be
thrown but the class definition is unavailable. Most times I get Unknown
error - I check if every dependency is required_once() correctly.
Victor
Ingmar Heinrich wrote:
> Hi,
>
> I have coded
>
> Zend_XmlRpc_Server_Fault::attachFaultException('Zend_Auth_Exception');
>
> but the client still gets a 404 - Unknown error if the authentication
> fails within the dispatched object. If I call the action directly, i.
> e. without XmlRpc, I get a neat uncaught Zend_Auth_Exception.
>
> What might be the problem?
>
> Cheers,
> Ingmar
>
>