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, 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

Magento Forum

SOAP error when calling the WSDL from .NET application
Jr. Member
Total Posts:  1
Joined:  2013-05-02

I do not know anything about PHP but have been ask to integrate with Magento with Microsoft GP. I have imported the WSDL into a console application but getting the following

System.Web.Services.Protocols.SoapHeaderException was unhandled
Message=SOAP-ERROR: Parsing Schema: unexpected <all> in complexType
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

Here is a sample code that I found online that I am trying to run

MagentoService mservice = new MagentoService();
String mlogin = mservice.login("YOUR_USERNAME", “YOUR_API_KEY");

filters mf = new filters();
complexFilter[] cpf = new complexFilter[1];
complexFilter mcpf = new complexFilter();
mcpf.key = “increment_id”;
associativeEntity mas = new associativeEntity();
mas.key = “gt”;
mas.value = “1008001”;
mcpf.value = mas;
cpf[0] = mcpf;
mf.complex_filter = cpf;
salesOrderListEntity[] soe = mservice.salesOrderList(mlogin, mf);
if (soe.Length > 0)
foreach(salesOrderListEntity msoe in soe.ToList())
Debug.WriteLine("” + msoe.billing_firstname + “ “ + msoe.subtotal);
catch (Exception merror)


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