SOAP-ERROR: Encoding: object hasn’t ‘website_ids’ property

Posted by Shane van Wyk on Stack Overflow See other posts from Stack Overflow or by Shane van Wyk
Published on 2010-02-17T08:41:27Z Indexed on 2010/04/30 11:07 UTC
Read the original article Hit count: 675

Filed under:
|
|
|
|

i am struggling to get the products listed/called from magneto via SOAP. I am using the following statement please help, tell me what i am doing wrong.

I am sending down the username and apikey vi the “LogInSession.Session()” method, it just keeps the connection info.

string sessionId = LogInSession.Session();
MagentoSOAPv2.MagentoService ms = new MagentoSOAPv2.MagentoService();
var productList = ms.catalogProductList(sessionId, new MagentoSOAPv2.filters(), storeView: "1");

            foreach (var pi in productList)
            {
                Response.Write("category_ids" + pi.category_ids + "<br/>");
                Response.Write("name" + pi.name + "<br/>");
                Response.Write("product_id" + pi.product_id + "<br/>");
                Response.Write("set" + pi.set + "<br/>");
                Response.Write("sku" + pi.sku + "<br/>");
                Response.Write("type" + pi.type + "<br/>");
                Response.Write("website_ids" + pi.website_ids + "<br/>");
            } 

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#