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! Quote Link to comment 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? Quote Link to comment 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.