Uncaught SoapFault exception
[email protected] (Jeppe Donslund)
| Newsgroups | php.soap |
|---|---|
| Message-ID | <[email protected]> |
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.