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

SOAP error when calling the WSDL from .NET application
 
Simba22042
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
HResult=-2146233087
Message=SOAP-ERROR: Parsing Schema: unexpected <all> in complexType
Source=System.Web.Services
Actor="”
Lang="”
Node="”
Role="”
StackTrace:
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())
{
try
{
Debug.WriteLine("” + msoe.billing_firstname + “ “ + msoe.subtotal);
}
catch (Exception merror)
{
Console.WriteLine(merror.Message);
}
}
}

}

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