The strange is that when I am passing the wsdl to SOAPClient using the URI (online & local) everything works fine. So when I put
$client = new SoapClient("http://localhost/myProject/WSDL.wsdl");
$client = new SoapClient("https://www.quiddiportal.com/quiddiservice.asmx?WSDL");
everything works fine.
But when I put only the name of the wsdl file.
$client = new SoapClient("WSDL.wsdl");
I get an "Gateway Time-out" error from the line where I call a function of the web service. I use Netbeans and I run the projects in my console. Although if I call the same code that gives me this error from a browser then everything works fine.