pwner99
07-12-2009, 06:18 AM
I'm using a soap script provided by OVH (http://www.ovh.com/soapi/en/?method=dedicatedInfo) and it just will not work on my server, I keep getting Internal Server Error (500). Now the thing about this script is that it will work on cheap $3 hosting, but it won't work on my primary business hosting which is $22 a month. I tried to get a refund from the company but they're unwilling, I'll lean on them a bit more to see what happens but that's not the issue. To sum it all up, script doesn't work on expensive server, but it does on the cheap one and I really need help setting it up. Here's the code:
<?php
try {
$soap = new SoapClient("https://www.ovh.com/soapi/soapi-re-1.4.wsdl");
//login
$session = $soap->login("USERNAME", "PASS","en", false);
echo "login successfull\n";
//dedicatedInfo
$result = $soap->dedicatedInfo($session, "HOSTNAME");
echo "dedicatedInfo successfull\n";
print_r($result); // your code here ...
//logout
$soap->logout($session);
echo "logout successfull\n";
} catch(SoapFault $fault) {
echo $fault;
}
?>
<?php
try {
$soap = new SoapClient("https://www.ovh.com/soapi/soapi-re-1.4.wsdl");
//login
$session = $soap->login("USERNAME", "PASS","en", false);
echo "login successfull\n";
//dedicatedInfo
$result = $soap->dedicatedInfo($session, "HOSTNAME");
echo "dedicatedInfo successfull\n";
print_r($result); // your code here ...
//logout
$soap->logout($session);
echo "logout successfull\n";
} catch(SoapFault $fault) {
echo $fault;
}
?>
