iPixel Posted June 29, 2012 Share Posted June 29, 2012 Hey Guys! I have an odd issue, I have a soap script that works fine, however if the wsdl file fails the whole page goes blank. Why doesn't this work, or rather how can I accomplish this a working way. <?php if($client = new SoapClient("https://www._____.com/services/RegistrationServiceImpl?wsdl",array("trace"=> 1, "exceptions" => 0))) { echo "Ok!"; } else { echo "Failed to load WSDL file"; } ?> Thanks! Link to comment https://forums.phpfreaks.com/topic/264992-catch-soapclient-error/ Share on other sites More sharing options...
boompa Posted June 29, 2012 Share Posted June 29, 2012 What about something like what you see here in the docs? A try/catch mechanism? Link to comment https://forums.phpfreaks.com/topic/264992-catch-soapclient-error/#findComment-1357945 Share on other sites More sharing options...
iPixel Posted June 29, 2012 Author Share Posted June 29, 2012 Hmm, go figure. That will work just fine. Thank YOU! Link to comment https://forums.phpfreaks.com/topic/264992-catch-soapclient-error/#findComment-1357946 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.