Reply to catch errors with SoapClient

Your name:

Reply:


Posted by Sergei Riaguzov on 08/01/07 14:44

Hi,

How can I catch errors produced by SOAP server with SoapClient? The first
thing which comes in mind is eval() but maybe there is a better way? The
server is sending some fault information and then SoapClient->call()
fails with some ugly messages containing PHP code.

Is it possible to do something like

try {
$client->call(...)
} catch (smth) {
do_smth()
}

in PHP? Or at least call eval not on a string which is very ugly? And
maybe there is also a way to obtain SOAP server's error message from
SoapClient?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация