I am working on Magento Soap API v2 and developing a desktop C# application.
Correct behaviour :
- On another hosting this magento api works fine anyway
- On this hosting (rack-space), If I open the api link (http://162.242.xx.xx/dnmagento/index.php/api/v2_soap?wsdl=1) through browser, it works fine
Undesired behaviour: On this hosting (rack-space), I can not connect api programatically (c# or php)
private void login_Click(object sender, EventArgs e)
{
magWebReference.MagentoService mag = new magWebReference.MagentoService();
// Throws exception here
string sessionID=mag.login("apiuser","password");
MessageBox.Show(sessionID);
}
I get following error while connecting
SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://162.242.xx.xx/dnmagento/index.php/api/v2_soap/index/?wsdl=1' : failed to load external entity "http://162.242.xxx.xx/dnmagento/index.php/api/v2_soap/index/?wsdl=1"
Note : In reported error /index/ is automatically added after /v2_soap. while in provided link there is no /index/.