--- app/code/core/Mage/Catalog/Model/Product/Attribute/Api.php.org	2010-02-23 15:13:42.000000000 +0100
+++ app/code/core/Mage/Catalog/Model/Product/Attribute/Api.php	2010-02-23 15:15:24.000000000 +0100
@@ -115,4 +115,80 @@
         }
         return $options;
     }
+
+    /**
+     * Create new product attribute.
+     *
+     * @param string $attributeName
+     * @param array $attributeData
+     * @param string|int $store
+     * @return int
+     */
+    public function create($attributeName, $attributeData, $store = null)
+    {
+	// create product attribute
+        $installer = new Mage_Catalog_Model_Resource_Eav_Mysql4_Setup('core_setup');
+        $installer->addAttribute('catalog_product', $attributeName, $attributeData);
+
+	// get product attribute id
+        $storeId = $this->_getStoreId($store);
+        $attribute = Mage::getModel('catalog/product')
+            ->setStoreId($storeId)
+            ->getResource()
+            ->getAttribute($attributeName);
+
+	return $attribute->getId();
+    }
+
+    /**
+     * Create attribute options
+     *
+     * @param string $attributeId
+     * @param array $attributeOptions
+     * @return int
+     */
+    public function addoptions($attributeId, $attributeOptions)
+    {
+	$setup = new Mage_Eav_Model_Entity_Setup('core_setup');
+
+	for($i = 0; $i < sizeof($attributeOptions); $i++) {
+		$option = array();
+		$option['attribute_id'] = $attributeId;
+		$option['value'][$value][0] = $attributeOptions[$i];
+
+		$setup->addAttributeOption($option);
+	}
+
+	return true;
+    }
+
+    /**
+     * Delete product attribute.
+     *
+     * @param string $attributeName
+     * @param string|int $store
+     * @return int
+     */
+    public function delete($attributeName, $store = null)
+    {
+        $storeId = $this->_getStoreId($store);
+        $attribute = Mage::getModel('catalog/product')
+            ->setStoreId($storeId)
+            ->getResource()
+            ->getAttribute($attributeName);
+
+        if (!$attribute) {
+            $this->_fault('not_exists');
+        }
+
+        try {
+            $attribute->delete();
+        } catch (Mage_Core_Exception $e) {
+            $this->_fault('not_deleted', $e->getMessage());
+
+            return false;
+        }
+
+	return true;
+    }
 } // Class Mage_Catalog_Model_Product_Attribute_Api End
