Magento V2_SOAP Problem/ Error

Before today my Magento soap worked fine, i could do a logon and a session string would be returned. I have tried the same thing today and it did not work. version 1.4.2.0

I have tried to connect to 2 different Domains, with each set up with magento and i get the same error.

Can anyone tell me why that would be?

this is the error i am getting.
{“Possible SOAP version mismatch: Envelope namespace http://schemas.xmlsoap.org/wsdl/ was unexpected. Expecting http://schemas.xmlsoap.org/soap/envelope/.”}

and this is the code i use with Web Reference

string url = "Url";
string apiUser = "User";
string apiKey = "Key";   
_magentoService = new MagentoService();
                        _magentoService.Url = url;
                        var logOn = _magentoService.login(apiUser, apiKey);
                        string logon2 = logOn.ToString();

The same problem with version 1.5 stable

One thought on “Magento V2_SOAP Problem/ Error”

  1. If you are having problems with the soap error do not use the api/v2_soap?wsdl, remove the ?wsdl so your connection should be something like this:

    http://www.yourdomain.com/index.php/api/v2_soap
    and not
    http://www.yourdomain.com/index.php/api/v2_soap?wsdl
    nor
    http://www.yourdomain.com/index.php/api/v2_soap?wsdl=1

    Reference:
    http://www.magentocommerce.com/boards/vie/viewthread/219528/
    Problem regarding consuming php web service in c# Desktop application

Leave a Reply

Your email address will not be published. Required fields are marked *