cancel
Showing results for 
Search instead for 
Did you mean: 

Empty XML SOAP Magento

Empty XML SOAP Magento

When I test my SOAP with SoapUI I get a empty XML file when I login, So it seems that something goes wrong with the Magento API

Can someone tell me what the basic things I can check?

 

I get the follow error back from the feed when I look;

 

 

by System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

by System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

by MagentoLINQapp.MagentoSOAP.MagentoService.salesOrderInfo(String sessionId, String orderIncrementId)

by MagentoLINQapp.MagentoExtensions.<Populate>d__0.MoveNext()

by MagentoLINQapp.SynchronizerDumco.syncOrders()

2016-03-02 08:58:19.7714|ERROR|Error retrieving existing categories in Magento : Can not read data from the transport connection : The connection was closed .

 

 

Request:

 

 

<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">Username</username>
<apiKey xsi:type="xsd:string">APIKEY</apiKey> </urn:login> </soapenv:Body> </soapenv:Envelope>

 

 

Response / Headers:

 

 

 

HTTP/1.1 200 OK
Server: nginx
Date: Fri, 04 Mar 2016 07:52:17 GMT
Content-Type: text/xml; charset=UTF-8
Content-Length: 544
Connection: keep-alive
Set-Cookie: PHPSESSID=pp1llh8jesijfdvmo7o8fu9tp6; expires=Fri, 04-Mar-2016 10:38:52 GMT; path=/; domain=www.domein.nl; secure; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Hypernode: release-2684

 

Body:

 

<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Magento" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns1:loginResponse> <loginReturn xsi:type="xsd:string">6502aef0f94efcd7ca97a1db846d6b29</loginReturn> </ns1:loginResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>