Try the Demo

Magento Forum

   
API v2_SOAP: Create Category issue
 
nfelt
Jr. Member
 
Total Posts:  5
Joined:  2009-07-31
 

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(sessionIDparentIDcategoryData"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.

 
Magento Community Magento Community
Magento Community
Magento Community
 
nfelt
Jr. Member
 
Total Posts:  5
Joined:  2009-07-31
 

I found the issue for those having the same problem.

I’m not sure why http://example.magento.com/index.php/api/v2_soap?wsdl does not work with that particular call, but I found if I changed the reference to http://example.magento.com/index.php/api/v2_soap?wsdl=1 the same call works.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tiep
Jr. Member
 
Total Posts:  3
Joined:  2010-03-21
 

try with Gogle ......good luck

bali holidays
apartments in Rome

 
Magento Community Magento Community
Magento Community
Magento Community
 
nfelt
Jr. Member
 
Total Posts:  5
Joined:  2009-07-31
 
tiep - 21 March 2010 09:05 PM

try with Gogle ......good luck

I had already posted the workaround to my problem to help out those who were having the same issue.

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