Magento Forum

   
Strange SOAP Fault
 
Fotis
Jr. Member
 
Total Posts:  9
Joined:  2008-12-03
 

Hello all,

i am trying to create a new category through SOAP API. I’m getting a mysterious error:

Fatal error: Uncaught SoapFault exception: [1] $_FILES array is empty in /Site/export.php:274 Stack trace: #0 [internal function]: SoapClient->__call(’call’, Array) #1 /Site/export.php(274): SoapClient->call(’3825515d7dfd31f...’, ‘category.create’, Array, ‘default’) #2 {main} thrown in /Site/export.php on line 274

The array i am trying to post is

Array
(
    
[0] => 3
    [1] 
=> Array
        (
            
[image] => 1133.jpg
            [parent_id] 
=> 3
            [sort_order] 
=> 5
            [created_at] 
=> 2006-11-14 20:39:44
            [updated_at] 
=> 2008-10-27 14:27:07
            [name] 
=> Test
            [is_active] 
=> 1
            [url_key] 
=> test
            [description] 
=> Test
        
)

)

Where element 0 is the parent id and the second is the array with the arguments. Any ideas???/

 
Magento Community Magento Community
Magento Community
Magento Community
 
hmpierson
Sr. Member
 
Total Posts:  101
Joined:  2008-11-15
 

have you looked at the thread:

http://www.magentocommerce.com/boards/viewthread/24991/

I was having trouble with the sample code in the wiki, I listed 2 things I had to do to eliminate SOAP exceptions.

I was then able to create categories as well.

P.S. The new categories were not visible either through the storefront or webservices API until I did a SYSTEM | CACHE MANAGEMENT | LAYERED NAVIGATION INDICES | REFRESH NOW

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