cancel
Showing results for 
Search instead for 
Did you mean: 

can't access soap api of magento 1.8.1

can't access soap api of magento 1.8.1

I need use soap api web services on my Magento 1.8.1 installation, but dont' works.

 I have created role and have created user and asign it to the created role.

When i try login from SOAPUI utility, to api v2 on my magento installation , y receive allways the error:

<SOAP-ENV:Body>
  <SOAP-ENV:Fault>
     <faultcode>WSDL</faultcode>
     <faultstring>SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.example.com/index.php/api/v2_soap/index/?wsdl=1' : Entity 'ntilde' not defined</faultstring>
  </SOAP-ENV:Fault>

The call to webservice is to: http://www.example.com/index.php/api/v2_soap

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:Magento">
<soapenv:Header/>
<soapenv:Body>
  <urn:login soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
     <username xsi:type="xsd:string">myuser</username>
     <apiKey xsi:type="xsd:string">mypasswd</apiKey>
  </urn:login>  </soapenv:Body></soapenv:Envelope>

I was searching in public_html/error_log in my server installation of magento and says this:

Couldn't load from 'http://www.example.com/index.php/api/v2_soap/index/?wsdl=1' : Entity 'ntilde' not defined
in /home/wwwexample/public_html/lib/Zend/Soap/Server.php on line 762

opening Server.php at 762 line says:

$server  = new SoapServer($this->_wsdl, $options);

Any idea to help me?