This is my first experience with Soap and I have already managed to run into big trouble! I would appreciate any help.

I keep getting an error while trying to run a soap client on a hosting service.

SoapClient::SoapClient() expects parameter 2 to be array, boolean given in home2/delegat2/public_html/dennis/newtest/lp/soapexample/soaputils.php on line 14

the line is simply:

$client = new soapclient('',true);

I'm runnig both client and server on the same hosting service. Curiously enough, the client works fine when i run it on another Hosting Service and on my computer too... ??? Could it be the '~' on the url?

I have already contacted my hosting service, and they have no clue about what could be wrong?

More on the error:

Fatal error: Uncaught SoapFault exception: [Client] SoapClient::SoapClient() [<a href='function.SoapClient-SoapClient'>function.SoapClient-SoapClient</a>]: Invalid parameters in /home2/delegat2/public_html/dennis/newtest/lp/soapexample/soaputils.php:14 Stack trace: #0 /home2/delegat2/public_html/dennis/newtest/lp/soapexample/soaputils.php(14): SoapClient->SoapClient('http://delegati...', true) #1 /home2/delegat2/public_html/dennis/newtest/lp/soapexample/soapmodules.php(5): getSoapClient() #2 {main} thrown in /home2/delegat2/public_html/dennis/newtest/lp/soapexample/soaputils.php on line 14