Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $wsdlPath = ""; // I have obviously set these variables to something meaningful, just hidden for the sake of security
- $apiPath = "";
- $username = "";
- $password = "";
- // PHP5 style
- $client = new soapclient($wsdlPath, array('login'=>username,
- 'password'=> $password,
- 'soap_version'=> SOAP_1_2,
- 'location'=> $apiPath,
- 'trace'=> 1));
- // PHP4/NuSOAP style
- $client = new soapclient($wsdlPath, true);
- client->setEndpoint($apiPath);
- $client->setCredentials($username, $password);
- $client ->loadWSD);
- EXCEPTION=SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://external-nbb.napi.norwegian.no.stage.osl.basefarm.net/api/napi1300?wsdl' in /home/eisebfog/public_html/database/norwegian.php:31
- Stack trace:
- #0 /home/eisebfog/public_html/database/norwegian.php(31): SoapClient->SoapClient('http://external...', Array)
- #1 /home/eisebfog/public_html/database/index.php(53): require_once('/home/eisebfog/...')
- #2 {main}
- if(!extension_loaded('soap')){
- dl('soap.so'); // Actually a deprecated method. See "notes" at http://no.php.net/dl
- }
- error_reporting( E_ALL );
Add Comment
Please, Sign In to add comment