![]() |
| How to stop/hide NuSoap error messages and warnings |
|
Site Admin
|
you have to return SOAP exception in this case and set its fields with error info.
|
||||||||||||
|
_________________ The PHP IDE team |
|||||||||||||
|
Hmm, thanks a lot for this. I've looked around, but don't really understand what you mean. Basic problems are being handled like this:
But I don't see why in any case SOAP is supposed to spit out the SQL query. Which it does if the SQL is wrong:
How can I suppress this kind of warning? Thanks a lot for any help/adivce! Stef |
||||||||||||||||||
|
|
|||||||||||||||||||
|
Site Admin
|
1) don't display the errors: ini_set('display_errors', 'off'); 2) wrap the function call that triggers exception in try-catch block:
3) if you have php_soap extension loaded but want to use nusoap library, you have to use nusoap_fault class instead of soap_fault |
||||||||||||||||
|
_________________ The PHP IDE team |
|||||||||||||||||
|
Thanks a lot. Very helpful, this!
|
||||||||||||
|
|
|||||||||||||
|
Sorry, me again. It's strange, because I'd say I have coded it the way you say:
But then I get a "<b>Catchable fatal error</b>: Object of class soap_fault could not be converted to string in <b>/www/etc/nusoap/lib/nusoap.php</b> on line <b>3615</b>" message. And using nusoap_fault doesn't work either: "<b>Fatal error</b>: Class 'nusoap_fault' not found in <b>/xxx/xxx_data_update_ws.php</b> on line <b>181</b>" Thanks for any help! |
||||||||||||||
|
|
|||||||||||||||
| How to stop/hide NuSoap error messages and warnings |
|
||
|
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by


RSS2 Feed