Re: [PHP] use_soap_error_handler

2005-02-17 Thread Jochem Maas
FENDT Charles wrote:
Hello...
Someone knows how this work ?
use_soap_error_handler
I don't have a clue but looking at the docs you have at least 2 other ways 
of
handling SOAP errors:
1. http://php.paradoxical.co.uk/manual/en/function.is-soap-fault.php
2. use a try/catch block
try {
// do some SOAP stuff here
}
catch (SoapFault $e) {
// catch SOAP specific exceptions here
}
catch (Exception $e) {
// catch general exceptions
}
I DO NOT KNOW what the classname of the Soap Exception assuming SoapServer
does not just throw std Exceptions... so I guessed that it might be called
SoapFault the manual seems to indicate that this is correct.
HTH - (I just figured out wtf HTH means :-)
I search a way to handle SoapFault exceptions from the SoapServer class...
Regards
FENDT Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] use_soap_error_handler

2005-02-17 Thread FENDT Charles
Jochem Maas a écrit :
FENDT Charles wrote:
Hello...
Someone knows how this work ?
use_soap_error_handler

I don't have a clue but looking at the docs you have at least 2 other 
ways of
handling SOAP errors:

1. http://php.paradoxical.co.uk/manual/en/function.is-soap-fault.php
is_soap_fault is only for SoapClient...
2. use a try/catch block
try {
// do some SOAP stuff here
}
catch (SoapFault $e) {
// catch SOAP specific exceptions here
}
catch (Exception $e) {
// catch general exceptions
}
and try catch nothing !!!
just an exmple :
?php
echo begin\n;
$server = new SoapServer(null, http://test/;);
try {
  $server-handle();
} catch (Exception $e) {
  echo ERROR\n;
}
echo end\n;
?
:-(
that's why y search some stuff over use_soap_error_handler
Is the solution there ???
FENDT Charles

I DO NOT KNOW what the classname of the Soap Exception assuming SoapServer
does not just throw std Exceptions... so I guessed that it might be called
SoapFault the manual seems to indicate that this is correct.
HTH - (I just figured out wtf HTH means :-)
I search a way to handle SoapFault exceptions from the SoapServer 
class...

Regards
FENDT Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] use_soap_error_handler

2005-02-17 Thread Jochem Maas
FENDT Charles wrote:
Jochem Maas a écrit :
FENDT Charles wrote:
Hello...
Someone knows how this work ?
use_soap_error_handler

I don't have a clue but looking at the docs you have at least 2 other 
ways of
handling SOAP errors:

1. http://php.paradoxical.co.uk/manual/en/function.is-soap-fault.php

is_soap_fault is only for SoapClient...
ah, ok, sorry.

2. use a try/catch block
try {
// do some SOAP stuff here
}
catch (SoapFault $e) {
// catch SOAP specific exceptions here
}
catch (Exception $e) {
// catch general exceptions
}

and try catch nothing !!!
just an exmple :
?php
echo begin\n;
$server = new SoapServer(null, http://test/;);
try {
  $server-handle();
} catch (Exception $e) {
  echo ERROR\n;
}
echo end\n;
?
I can't test this (no machine with the SOAP extension + lack of time +
less than stellar skills when it comes to compiling stuff :-)
I am wondering what the return value of $server-handle() is, maybe
you will have to check the return value to see if an error occurs.
:-(
that's why y search some stuff over use_soap_error_handler
Is the solution there ???
FENDT Charles

I DO NOT KNOW what the classname of the Soap Exception assuming 
SoapServer
does not just throw std Exceptions... so I guessed that it might be 
called
SoapFault the manual seems to indicate that this is correct.

HTH - (I just figured out wtf HTH means :-)
I search a way to handle SoapFault exceptions from the SoapServer 
class...

Regards
FENDT Charles

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] use_soap_error_handler

2005-02-17 Thread FENDT Charles
Jochem Maas a écrit :
FENDT Charles wrote:
Jochem Maas a écrit :
FENDT Charles wrote:
Hello...
Someone knows how this work ?
use_soap_error_handler


I don't have a clue but looking at the docs you have at least 2 other 
ways of
handling SOAP errors:

1. http://php.paradoxical.co.uk/manual/en/function.is-soap-fault.php

is_soap_fault is only for SoapClient...

ah, ok, sorry.

2. use a try/catch block
try {
// do some SOAP stuff here
}
catch (SoapFault $e) {
// catch SOAP specific exceptions here
}
catch (Exception $e) {
// catch general exceptions
}

and try catch nothing !!!
just an exmple :
?php
echo begin\n;
$server = new SoapServer(null, http://test/;);
try {
  $server-handle();
} catch (Exception $e) {
  echo ERROR\n;
}
echo end\n;
?

I can't test this (no machine with the SOAP extension + lack of time +
less than stellar skills when it comes to compiling stuff :-)
I am wondering what the return value of $server-handle() is, maybe
you will have to check the return value to see if an error occurs.
void ... :-(
void SoapServer::handle([string])
no exception...
in 2 words... NO INFORMATION on what happened
FENDT Charles

:-(
that's why y search some stuff over use_soap_error_handler
Is the solution there ???
FENDT Charles

I DO NOT KNOW what the classname of the Soap Exception assuming 
SoapServer
does not just throw std Exceptions... so I guessed that it might be 
called
SoapFault the manual seems to indicate that this is correct.

HTH - (I just figured out wtf HTH means :-)
I search a way to handle SoapFault exceptions from the SoapServer 
class...

Regards
FENDT Charles

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] use_soap_error_handler

2005-02-17 Thread Jochem Maas
FENDT Charles wrote:
...
just an exmple :
?php
echo begin\n;
$server = new SoapServer(null, http://test/;);
try {
  $server-handle();
} catch (Exception $e) {
  echo ERROR\n;
}
echo end\n;
?

I can't test this (no machine with the SOAP extension + lack of time +
less than stellar skills when it comes to compiling stuff :-)
I am wondering what the return value of $server-handle() is, maybe
you will have to check the return value to see if an error occurs.

void ... :-(
void SoapServer::handle([string])
no exception...
in 2 words... NO INFORMATION on what happened
have you tried setting a handler function for the SoapServer,
before calling SoapServer::handle() ?:
function test($v) { var_dump($v); }
$server-addFunction(test);
if you do that do you get any output? if not then I'm really no more help to
you... you next best bet is to dive into CVS and check the test scripts (if 
there are any),
unpublished documentation/examples (if there are any) and the source code (if 
it means
anything to you.)
if all that fails you might consider going higher up the PHP foodchain
and mailing the maintainer/list politely asking whether there maybe a problem - 
if you
do decide to mail the maintainer  or internals or something - be polite, 
apologetic, consise
and make sure you detail your problem fully - they are all busy people and you 
want to
maximise the chance of getting a useful reply :-).

FENDT Charles
...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php