I'm trying to connect a C# app to Magento 1.6 (through Magento SOAP V2) using the following code:
using (Mage_Api_Model_Server_Wsi_HandlerPortTypeClient proxy = new Mage_Api_Model_Server_Wsi_HandlerPortTypeClient())
{
string sessionId = proxy.login("XXXXXXX", "XXXXXXXXXXX");
Console.WriteLine(sessionId);
}
and I get the following error:
Error in deserializing body of reply message for operation 'login'.
I used Fiddler to inspect the transfer and this is the result:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Magento">
<SOAP-ENV:Body>
<ns1:loginResponseParam>
<result>fc094df96480dbbcdXXXXXXXXXXXXXXX</result>
</ns1:loginResponseParam>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I'm using:
- Magento V 1.6
- Magento SOAP V2
- WS-I Compliance (ie System/Configuration/Services/Magento Core API/WS-I Compliance is set to Yes)
- Content type fix: Content Type Error Consuming Magento 1.5 Webservices from .Net
- VS 2010
- .Net 3.5
Any ideas how I can fix (or debug) this problem?