cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid login by API. C#

Invalid login by API. C#

 

 

 

Hello.

 

I have problem with connect to api mageno.

I programming in C#.

I user method login. I passed login and password the same as in configuration on magento.

 

I connect to api by

 

http://localhost:8080/magento/index.php/api/v2_soap/?wsdl=1

or

http://localhost:8080/magento/api/soap/?wsdl

 

WebReference1.MagentoService service = new MagentoService();

  result = service.login(login, password);

 

 

When I try running method i get message:

 

 

An exception of type 'System.InvalidOperationException' occurred in System.Web.Services.dll but was not handled in user code

Additional information: The client has found the content type of the response "text / html; charset = UTF-8 ", but expected to be" text / xml ".

The request failed. Error message:

--

<SOAP-ENV:Envelope xmlnsSmiley FrustratedOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

                <SOAP-ENV:Body>

                <SOAP-ENV:Fault>

                <faultcode>0</faultcode>

                <faultstring>SOAP extension is not loaded.</faultstring>

                </SOAP-ENV:Fault>

                </SOAP-ENV:Body>

                </SOAP-ENV:Envelope>

--.

 

 

 

 

Please help me.

 

Kind Regards.

1 REPLY

Re: Invalid login by API. C#

This problem is solved. I deselect extension=php_soap.dll in php.ini.