I am using SOAP through Visual Studio 2012 RC with C # to use the Magento API. I did this by adding a service link pointing to a WSDL SOAP file.
Now I am having difficulty delivering the SalesOrderEntity address. This is how I retrieve these objects.
var f = new filters();
f.filter = new associativeEntity[] {
new associativeEntity {
key ="status",
value ="processing"
}
};
var entities = mservice.salesOrderList(mlogin, f);
It works just fine, but when I repeat them and show some of their information, I come across something strange.
foreach (var entity in entities)
{
var info = mservice.customerAddressInfo(mlogin, int.Parse(entity.shipping_address_id));
Debug.WriteLine(info.firstname);
}
The sending address was not 0really set to the correct number (and yes, this is a string for some strange reason, although it always represents a number).
What am I doing wrong here?
source
share