473,320 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

SOAP libraries (SoapClient/Pear::SOAP) and error conditions

Hi everyone,

I'm trying to use PHP's built in SoapClient class. It seems really
easy to use, but am unsure of how to handle errors upon construction
of the SoapClient object. If either the network connection is
disabled, false URL is provided, or a malformed WSDL is provided, the
constructor produces an error:

Fatal error: SOAP-ERROR:

Is there someway of preventing PHP from exiting the script and
printing the error? I have tried calling use_soap_error_handler(false)
and providing my own handler (which just prints the information) but
it doesn't seem to have an affect on the soap errors (but does get
called when I use trigger_error).

It seems unusual that such a probable error condition is handled so
ungracefully.

If this isn't possible, does anyone know if Pear's soap client handles
error conditions better? I have had a look at the documentation and
couldn't find anything. It would be very unusual for both classes not
being able to handle a rather obvious error condition gracefully.

Thanks

Taras
Sep 16 '08 #1
1 2878
I think I found the answer.

At the bottom of http://bugs.php.net/bug.php?id=38703 it states that
XDebug can interfere with the throwing of exceptions.. this was what
was happening in my case.. calling xdebug_disable() resulted in errors
being thrown when trying to construct a soap client.

Hope that's useful for someone

Taras

Sep 16 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ben | last post by:
I am looking into deploying web services with PHP and would like to get on a 'good horse' to start. I am aware of NuSoap and PEAR:SOAP. Does anyone have any experience, good and/or bad with the...
0
by: Arne Kösling | last post by:
Hi ! I am new to Web Services. Therefore I ve set up a PHP Installation on Windows (PHP 4.3.2 and Apache 1.3.29). I have tested PHP alone and then installed PEAR. Now I am stuck there (Before...
0
by: Jimmy Jim | last post by:
OK, I am so frustrated with PEAR SOAP, I have it working, but it seems when I include a file and in that file is a function with global variables, those globals are not set. Anyone have ANY...
0
by: Arne Kösling | last post by:
Hi, PEAR:SOAP is not working. I've tried so many examples now and the only one that works, is that amazon example, which is too complex for me to understand. I am so reliant on the Web...
3
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts...
0
by: Mr. S | last post by:
Hi! I need a SOAP request like this <?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"...
0
by: Alexander Waldmann | last post by:
Hi, i have PEAR::SOAP installed correctly (beta, all dependent packages are installed). When i try out the following simple Script <?php print "Include is ... ";...
0
by: Samuel Zallocco | last post by:
Hi all, I've a problem with PHP5 + PEAR::SOAP. I Have the following 2 script that implements a simple web service: The Server Code running on WinXP + PHP5 + Apache 2.x:...
0
by: info | last post by:
Dear all, is the first time that I use SOAP, and i must say that i'm having several problems. this is SOAP message that expects the server =================XML EXPECTED FROM THE...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.