Jump to content

Catch SoapClient Error


iPixel

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.