Uncaught SoapFault exception
| From: | Jeppe Donslund | Date: | Tue, 12 Jun 2007 08:51:10 +0000 |
| Subject: | Uncaught SoapFault exception | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-2556@lists.php.net to get a copy of this message | ||
Hi,
I try to connect to som WSDL, but I get this error:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from ....
My code:
$client = new SoapClient("http://campaigns.emailserver2.com/zoomiowebservice/login.asmx?WSDL", array("strUserName" => "userName", "strPwd" => "password", "trace" => true));
try {
$objectresult = $client->LogOn(array("strUserName" => "userName", "strPwd" => "password", "trace" => true));
$simpleresult = $objectresult->strSessionId;
echo htmlspecialchars($simpleresult);
} catch (SoapFault $exception) {
echo $exception;
}
What is wrong?
Regards
Jeppe D.