I’ve been having an issue with creating categories through the API.
I can create categories easily enough. However, every category created through the API is not active. It doesn’t seem to matter if the ‘is_active’ field in my catalogCategoryEntityCreate array is set to ‘1’ or ‘True’. It would appear the API is ignoring this field when accessing the API through the url http://example.magento.com/index.php/api/v2_soap?wsdl
I am coding in VB.NET. Sample below:
categoryData.name = "TestCategory"
categoryData.default_sort_by = "name"
categoryData.available_sort_by = "name"
categoryData.description = "Description of category"
categoryData.is_active = 1
categoryID = ws.catalogCategoryCreate(sessionID, parentID, categoryData, "0")
I’ve noticed that when coding in PHP using the url http://example.magento.com/index.php/api/soap/?wsdl the category is created correctly and is enabled/disabled depending on the value of ‘is_active’.
Anyone else having this issue? Anyone found a work around (other than accessing the API using PHP). I’m required to complete this project using .NET.
Thanks for the help.