Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

API SOAP v2 not working
 
Olivier_Legend
Jr. Member
 
Total Posts:  3
Joined:  2013-02-21
 

Hi,

I’m trying to have v2_soap API working on my Magento 1.7.0.2.
I have a software which I need that uses Magento SOAP v2 API to synchronise data with our ERP.

System Configuration :
- Debian 6
- Nginx 1.2.8
- PHP-FPM 5.4.15 (dotDeb)

My Nginx configuration is rather basic :
Without URL rewrite :

server {
    listen 80
;
    
server_name test.mydomain.com ;

    
root /srv/http/test.mydomain.com/www;
    
index index.php;

    
location {
        try_files $uri $uri
/ =404;
    
}

    location 
\.php{
        fastcgi_split_path_info 
^(.+\.php)(/.+)$;
        
fastcgi_pass unix:/var/run/php5-fpm-mysite.sock;
        
fastcgi_index index.php;
        include 
fastcgi_params;
        
fastcgi_read_timeout 240;
    
}

    location 
\.php{
        rewrite 
^(.*\.php)/ $1 last;
    
}

}

With URL rewrite only these change :

location {
        try_files $uri $uri
/ @magento;
    
}

    location 
@magento {
        rewrite 
/ /index.php;
    
}

I’m using soapUI 4.5.1 for my tests.

I’ve tried with URL rewrite AND without. It does not work in both cases (I’ve installed a fresh Magento in both cases)
I’ve got different “errors” depending on the url I use.

I’ve tested all the following URLs :
- http://test.mydomain.com/index.php/api/v2_soap/index/?wsdl
- http://test.mydomain.com/index.php/api/v2_soap/index/?wsdl=1
- http://test.mydomain.com/index.php/api/v2_soap?wsdl
- http://test.mydomain.com/index.php/api/v2_soap?wsdl=1
With URL rewrite, I’ve also tried the same URLs without index.php/ :
http://test.mydomain.com/api......

All i can get is WSDLdefinitions :

<wsdl:definitions name="Magento" targetNamespace="urn:Magento" xmlns:typens="urn:Magento" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
   <
wsdl:types>
      <
xsd:schema targetNamespace="urn:Magento">
         <
xsd:complexType name="associativeEntity">
            <
xsd:sequence>
               <
xsd:element name="key" type="xsd:string"/>
               <
xsd:element name="value" type="xsd:string"/>
            </
xsd:sequence>
         </
xsd:complexType>
...

If I omit ?wsdl the result is an error : “SOAP-ERROR: Parsing WSDL: Couldn’t load from http://.....”

I’ve tried with a service provider’s Magento 1.7.0.2 install and the result in soapUI is the session ID, so I can be sure that soapUI is working ^^

On my running shop, which has been installed on a server with the same system configuration and with URL rewrite, the connector ERP<->Magento has once worked correctly with Magento API. Later, without any configuration change in the connector, it stopped working. I thought it could be an extension. So I removed all of them. I also tried with a vanilla Magento install. Nothing is working.
I suspect it might be a problem with Nginx or PHP configuration. But I’ve no idea what…

If anyone has any idea, I’ll be glad to explore all that can be explored.

Thanks

Regards,

 
Magento Community Magento Community
Magento Community
Magento Community
 
dwdonline
Member
 
Avatar
Total Posts:  56
Joined:  2008-03-06
Southern California
 

Did you ever find a solution for this to fix it?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top