Hello I have the following code :
$enllaç = "http://preproduccio.www14.gencat.cat/jov_titus/AppJava/services/EscolesWebService?wsdl";
$aOptions = array(
'location' => $enllaç,
'uri' => 'http://tempuri.org/',
'soap_version' => SOAP_1_2
);
try {
$client = new SoapClient($enllaç, $aOptions);
$param = array('LoginInfo' => array('password' => $password, 'user' => $login));
$result = $client->__soapCall('login', $param);
} catch (SoapFault $fault) {
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);
}
I don't know why but I'm getting an error like this Fatal error: SOAP Fault: (faultcode: VersionMismatch, faultstring: Wrong Version) in /Users/... on line ..
I change version soap from 1_1 to 1_2 but nothing happens...
it's my first time using SOAP .. so I'm stuck right now with not known direction to go. any help would be appreciated