Web Hosting Talk







View Full Version : SOAP Connection Shows Internal Server Error


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;
}

?>

pwner99
07-13-2009, 09:54 AM
Issue fixed, turns out a firewall was blocking access to the remote server.

yourwebhostereu
10-17-2009, 08:34 AM
I'm also using the SOAPI, but I don't want to disable the firewall. Which ports are required to be open so I can use this?
Did you really turn off the firewall or??

PS I know it is an old topic but still the same problem.

yourwebhostereu
10-17-2009, 08:39 AM
Resolved: Just open port 1664 :-)
I found it here: http://forum.ovh.com/showthread.php?t=35678 (after translating of course, thanks google:-))

Was a few minutes to fast with replying. I was searching for an hour and found this topic, and only a few minutes later I found the topic on OVH:-)