PHP:
<?php
ini_set('display_errors', 'on');
//login
$login = 'abano';
$password = '00024';
$language = 'it';
$multisession = false;
try {
$soap = new SoapClient("http://simdonau.siaspa.com/jmil/services/base?wsdl");
//login
$session = $soap->login($login, $password, $language, $multisession);
echo "login successfull\n";
// SOMETHING
//logout
$soap->logout($session);
echo "logout successfull\n";
} catch(SoapFault $fault) {
echo $fault;
}
questo programmino mi da questo errore
Codice:
Warning: SoapClient::SoapClient([url]http://simdonau.siaspa.com/jmil/services/base?wsdl[/url]) [soapclient.soapclient]: failed to open stream: HTTP request failed! HTTP/1.1 500 ( Connection refused ) in /home/u0fcrbwm/domains/siaworld.biz/public_html/prova1.php on line 10
Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning : failed to load external entity "http://simdonau.siaspa.com/jmil/services/base?wsdl" in /home/u0fcrbwm/domains/siaworld.biz/public_html/prova1.php on line 10
SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://simdonau.siaspa.com/jmil/services/base?wsdl' : failed to load external entity "http://simdonau.siaspa.com/jmil/services/base?wsdl" in /home/u0fcrbwm/domains/siaworld.biz/public_html/prova1.php:10 Stack trace: #0 /home/u0fcrbwm/domains/siaworld.biz/public_html/prova1.php(10): SoapClient->SoapClient('http://simdonau...') #1 {main}
Ultima modifica di un moderatore: