Académique Documents
Professionnel Documents
Culture Documents
com
TITRE :
REF
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 f the License, or (at your option) any later version. GPL License
-1-
CREATION / UPDATE
Version 0.7 0.8 0.9 RC1.0 Date Origin TAGS Creation Update : Add Interfaces documentations Update : Add DeleteUser/AddUser /AddCategory / DeleteCategory Interfaces documentations Update : Add DeleteProduct/ AddProduct /UpdateProduct / SQLServices Interfaces documentations Update : Add Product Fields Update : Add SendMail Update : New Back Office config Update : Add CreateOrder / GetUserFromEmailOrUsername - Add GetAllCurrency - Add GetAllCountryCode - Add GettAllCouponCode - Add AddCouponCode - Add DeleteCouponCode - Add GetAllShippingRate - Add GetAllShippingCarrier - Add AddShippingRate - Add AddShippingCarrier - Add DeleteShippingCarrier - Add DeleteShippingRate - Add GetAllPaymentMethod - Add AddPaymentMethod - Add UpdatePaymentMethod - Add DeletePaymentMethod - Add GetAuthGroup - Add AddAuthGroup - Add DeleteAuthGroup - Add getAllStates - Add addStates - Add deleteStates - Add GetAllTax - Add AddTax - Add UpdateTax 2
06/06/2010 MCA
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com - Add DeleteTax - Add GetShopperGroup - Add AddShopperGroup - Add UpdateShopperGroup - Add DeleteShopperGroup - Add GetAllProducts - Add GetAvailableImages (products) - Add GetAvailableImages (categories) - Add UpdateCategory - Add GetOrderFromDate - add product_sales to product object - Correction Limite GetAllProduct - Change SQL Return - Correct Getusers(add username) - Change name gettAllCouponCode to getAllCouponCode - Add GetAllCreditCard - Add AddCreditCard - Add UpdateCreditCard - Add DeleteCreditCard - Add UpdateUser - Add AddOrderStatusCode - Add UpdateOrderStatusCode - Add DeleteOrderStatusCode - Modify UdpatusOrder (massUpdate) - Modify getOrderStatus - Add GetAllVendor - Add AddVendor - Add UpdateVendor - Add DeleteVendor - Add GetAllVendorCategory - Add AddVendorCategory - Add UpdateVendorCategory - Add DeleteVendorCategory - Add GetAllManufacturer - Add AddManufacturer - Add UpdateManufacturer - Add DeleteManufacturer - Add GetAllManufacturerCat
1.5.1
13/06/2010 MCA
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com - Add AddManufacturerCat - Add UpdateManufacturerCat - Add DeleteManufacturerCat - Add GetAvailableVendorImages - CreateOrder (rename fields, add vendor_id) - User (Add bank account information, shopper_group_id) - Add GetVersions - Add VM_Upload - Add UpdateShippingCarrier - Add UpdateShippingRate - Update GetUserFromEmailOrUsername - Update GetUsers (add limite_start, limite_end) - Update Product (add manufacturer_id, vendor_id)
1.5.2
13/07/2010 MCA
1.5.3
30/11/2010 MCA
- Fix wsdl HTTP header 'Content-type: text/xml; charset=UTF-8', and length - add customer_number, groupe_id (gid) user_info_id,address_type,address_type_name,compa ny,middle_name, phone_2,extra_field_1,extra_field_2,extra_field_3,ext ra_field_4,extrtra_field_5 in addUser, updateuser - add shopper_group_id in product wsdl (VM_ProductService.php) for addProduct updateProduct - Fix bug when base url is empty - fix bug when product price is 0 - add <product_publish> <with_childs> to GetProductsFromCategory - fix bug in addCategory when image is not null and is not URL - fix bug in addProduct when image is not null and is not URL - add publishProduct in category, products
SUMMARY
1. 2. 3. 4. Introduction ................................................................................................................... 1 Requierement ................................................................................................................ 1 Architecture ................................................................................................................... 2 Installation ..................................................................................................................... 2 4.1. Download component .............................................................................................................. 2 4.2. Install component on Joomla ................................................................................................... 3 5. Component settings ...................................................................................................... 3 5.1. Settings :................................................................................................................................... 3 6. WebServices Access .................................................................................................... 7 6.1. WSDL Access : ........................................................................................................................ 7 6.2. WSDL Test : ............................................................................................................................ 7 6.3. WebServices Test : .................................................................................................................. 8 6.4. SOAP fault Exeption : ........................................................................................................... 10 6.5. Sample Client Code : ............................................................................................................. 10 7. WebServices Interfaces documentation ................................................................... 13 7.1. Categories Service.................................................................................................................. 13 7.2. Products Service..................................................................................................................... 17 7.3. Orders Service ........................................................................................................................ 32 7.4. Users Service ......................................................................................................................... 44 7.5. SQLQueries Service ............................................................................................................... 59 7.6. Upload Service ....................................................................................................................... 60
1.Introduction
This document is a User Manual for Joomla/Virtuemart component COM_VM_SOA (SOA For Virtuemart). This component provides WebServices to connect to Virtuemart functions. With com_vm_soa component you could connect to Virtuemart with many languages : C++, Java/J2ee, PHP, Flash/Flex, Javascript, VB, .Net ... You can manage your Categories, Products, Customers, Orders and execute SQL queries.
2.Requierement
Joomla 1.5.x Virtuemart 1.1.x PHP 5.2.x PHP SOAP module activated on apache
3.Architecture
The component expose Virtuemart functions as Webservices. Client requests have to be in SOAP format. The component call internals Virtuemart functions or database directly.
4.Installation
4.1. Download component Download SOA For Virtuemart Component on Source Forge: http://sourceforge.net/projects/soa-virtuemart/
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com 4.2. Install component on Joomla Go to Joomla administration -> Extensions - > Install Select zip file from your desk (click upload & install)
5.Component settings
5.1. Settings : Go to COM_VM_SOA component (component -> WebServices Virtuemart) :
Then modify fields: Hostname : IP or Hostname to Joomla install (ex: www.mywebsite.com ) WARNING !! without HTTP:// Base : Joomla install directory. (ex : shop if your website is accessible at www.mywebsite.com/shop ) SOAP Version : 1.2 by default
You can manage Categories, Products, Orders, Customer, SQL Webservices by clicking on category.
To Enable/Disable Webservices : Tick "Enable Webservice" WSDLs filename and Services filename dont need to be modified. But if you want to change it, change the name on the server before. You can tick "Enable WSDL cache" to enable WSDL cache.
To enable authentication on each functions , tick authentication. Click on save button to save the config. Your Virtuemart is open to SOA Architecture !!!
6.WebServices Access
VM_Orders
http://<host>/<base>/administrator/components/com_vm_soa/services/VM_OrderWSDL.php
VM_Products
http://<host>/<base>/administrator/components/com_vm_soa/services/VM_ProductWSDL.php
VM_Users
http://<host>/<base>/administrator/components/com_vm_soa/services/VM_UsersWSDL.php VM_SQLQueries http://<host>/<base>/administrator/components/com_vm_soa/services/VM_SQLQueriesWSDL.php
VM_ Upload (not a soap service) http://<host>/<base>/administrator/components/com_vm_soa/services/VM_Upload.php
6.2. WSDL Test : Go to Webservice URL If Webservice is deactivated youll have this message :
6.3. WebServices Test : To test WebService you can use tools like SOAPui. Create new project with URL to WSDL. ex: For Orders Management WebService :
http://<host>/<base>/administrator/components/com_vm_soa/services/VM_OrderWSDL.php
If you want to try GetOrder method : click right -> new request and fill in XML SOAP request. You have to fill: LoginInfo (USER and Password) NOTE : Only super Administrator user can use WebServices Order_id : (Id of order) Limite Start and Limite End are used to limit received data (For example if you use GetAllOrders methods you may want only just 500 first and not All. After fill in XML SOAP request press Start button (green button : see picture below )
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com 6.4. SOAP fault Exeption :
If user doesnt exist or if is not super administrator, Webservice well generate JoomlaServerAuthFault Exeption:
If you have an exception like : SOAP-ERROR: Parsing WSDL: Couldn't load from . In many case hostname configuration is not good (check if there is no http:// before or base) It may be PHP soap version. (PHP 5.2 is required)
10
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Flash/Flex You can use Webservices Tools in Flex 3, Flash builder4
<mx:WebService id="webServiceVM_Product" wsdl="http://<host>/<base>/administrator/components/com_vm_soa /services/VM_CategoriesWSDL.php" > <!-- Declaration de la fonction a appeler dans le webservice --> <mx:operation name="GetProductsFromCategory" resultFormat="object" result="GetProductsFromCategoryResult(event)" fault="showErrorDialog(event)" /> <mx:operation name="GetChildsProduct" resultFormat="object" result="GetProductsFromCategoryResult(event)" fault="showErrorDialog(event)" /> </mx:WebService>
Javascript
<SCRIPT language='javascript' src='http://YOUR_URL/administrator/components/com_vm_soa/js/soapclient.js'> </SCRIPT> <SCRIPT language=javascript> var url = "http://YOUR_URL/administrator/components/com_vm_soa/services/VM_UsersWSDL.php"; function GetVersions() { var method = "GetVersions"; // Method name to Call var pl = new SOAPClientParameters(); pl.add("login", login); pl.add("password", password); SOAPClient.invoke(url, method, pl, true, GetVersions_callBack); } /* WebService CallBack*/ function GetVersions_callBack(r,soapResponse) { if(soapResponse.xml) // IE alert(soapResponse.xml); else // MOZ alert((new XMLSerializer()).serializeToString(soapResponse)); //print Object result alert("Author : "+r.Author+"\nSOA_For_Virtuemart_Version : "+r.SOA_For_Virtuemart_Version+ "\nVirtuemart_Version : "+r.Virtuemart_Version+"\nDatabase_Version : "+r.Database_Version); }
11
Java 5 You can use Java SOAP Client Library for Virtuemart here :
http://www.virtuemart-datamanager.com/index.php?option=com_content&view=article&id=64&Itemid=96 //import import import import import import import //code VM_WebServicesClient virtuemartServices = new VM_WebServicesClient(); //get service for categories management VMCategories_Service catService = virtuemartServices.getCategoriesService(); //input parameters GetAllCategoriesInput input = new GetAllCategoriesInput(); LoginInfo login= new LoginInfo(); login.setLogin(Global.LOGIN); login.setPassword(Global.PASSWORD); input.setLoginInfo(login); //call WebService CategorieArray catColl = catService.getVMCategoriesSOAP().getAllCategories(input); //print response for (Categorie cat : catColl.getCategorie()){ System.out.println("category : "+cat.getName()+" | id : "+cat.getId()); } net.virtuemart.soapclient.VM_WebServicesClient; net.virtuemart.vm_categories.Categorie; net.virtuemart.vm_categories.CategorieArray; net.virtuemart.vm_categories.GetAllCategoriesInput; net.virtuemart.vm_categories.LoginInfo; net.virtuemart.vm_categories.VMCategories_Service;
12
VM_Categories Service
Access : http://<host>/<base>/administrator/components/com_vm_soa/services/VM_CategoriesWSDL.php
Functions : GetAllCategories
Input: LoginInfo
13
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com LoginInfo: Login password Categorie : id name description parentcat image fullimage numberofproducts category_publish category_browsepage category_flypage products_per_row Output: Array of Categories Categorie : id name description parentcat image fullimage numberofproducts category_publish category_browsepage category_flypage products_per_row Output: result
in
Functions : GetChildsCategories
Functions : AddCategory
14
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Category: id name description parentcat image fullimage numberofproducts category_publish category_browsepage category_flypage products_per_row Functions : DeleteCategory Input: LoginInfo Category_id Output: result
informations
Functions : UpdateCategory
Input: Output: LoginInfo result Category Category: id name description parentcat image fullimage numberofproducts category_publish category_browsepage category_flypage products_per_row Input: LoginInfo Output: Array image_name image_url
Functions : GetAvailableImages
16
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com 7.2. Products Service
17
VM_Products Service
Access : http://<host>/<base>/administrator/components/com_vm_soa/services/VM_ProductWSDL.php
Functions :
Input:
Output:
Comments
18
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com GetProductFromId LoginInfo Product_id Product
19
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Product_id Product: id name price discount discount_is_percent description bigdescription image fullimage quantity parent_produit_id has_childs childs_id atribute atribute_value product_sku product_publish product_weight product_weight_uom product_length product_width product_height product_lwh_uom product_unit product_packaging product_url custom_attribute product_available_dat e product_availability product_special child_options quantity_options product_discount_id product_tax_id child_option_ids product_order_levels manufacturer_id vendor_id shopper_group_id
20
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Functions : GetChildsProduct Input: LoginInfo Product_id Output: Array of Products
21
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Product_id Product: id name price discount discount_is_percent description bigdescription image fullimage quantity parent_produit_id has_childs childs_id atribute atribute_value product_sku product_publish product_weight product_weight_uom product_length product_width product_height product_lwh_uom product_unit product_packaging product_url custom_attribute product_available_dat e product_availability product_special child_options quantity_options product_discount_id product_tax_id child_option_ids product_order_levels manufacturer_id vendor_id shopper_group_id
products
22
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Functions : Input: GetProductsFromCategory LoginInfo category_id Output: Array of Products
23
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com category_id Product: id name price discount discount_is_percent description bigdescription image fullimage quantity parent_produit_id has_childs childs_id atribute atribute_value product_sku product_publish product_weight product_weight_uom product_length product_width product_height product_lwh_uom product_unit product_packaging product_url custom_attribute product_available_dat e product_availability product_special child_options quantity_options product_discount_id product_tax_id child_option_ids product_order_levels manufacturer_id vendor_id shopper_group_id
products category
in
24
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Functions : GetProductsFromOrderId Input: LoginInfo order_id Output: Array of Products
25
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com category_id Product: id name price discount discount_is_percent description bigdescription image fullimage quantity parent_produit_id has_childs childs_id atribute atribute_value product_sku product_publish product_weight product_weight_uom product_length product_width product_height product_lwh_uom product_unit product_packaging product_url custom_attribute product_available_dat e product_availability product_special child_options quantity_options product_discount_id product_tax_id child_option_ids product_order_levels manufacturer_id vendor_id shopper_group_id
26
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Functions : UpdateProduct Input: LoginInfo Product Output: result
27
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Product: id name price discount discount_is_percent description bigdescription image fullimage quantity parent_produit_id has_childs childs_id atribute atribute_value product_sku product_publish product_weight product_weight_uom product_length product_width product_height product_lwh_uom product_unit product_packaging product_url custom_attribute product_available_dat e product_availability product_special child_options quantity_options product_discount_id product_tax_id child_option_ids product_order_levels manufacturer_id vendor_id COM_VM_SOA : User Manual shopper_group_id Created 25/03/2010 result
28
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Functions : AddProduct Input: LoginInfo Product Output: result
29
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Product: id name price discount discount_is_percent description bigdescription image fullimage quantity parent_produit_id has_childs childs_id atribute atribute_value product_sku product_publish product_weight product_weight_uom product_length product_width product_height product_lwh_uom product_unit product_packaging product_url custom_attribute product_available_dat e product_availability product_special child_options quantity_options product_discount_id product_tax_id child_option_ids product_order_levels manufacturer_id vendor_id COM_VM_SOA : User Manual shopper_group_id Created 25/03/2010 result
30
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Functions : DeleteProduct Input: LoginInfo Product_id Product_id Input: LoginInfo Input: LoginInfo Input: tax_rate_id vendor_id tax_state tax_country mdate tax_rate Input: tax_rate_id vendor_id tax_state tax_country mdate tax_rate Input: Array of id Input: product_publish with_childs limite_start limite_end Input: loginInfo Output: result result Output: result Output: result Output: result
Functions : UpdateTax
Output: result
Comments
Comments Comments
Functions : GetAvailableImages
31
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com 7.3. Orders Service
32
VM_Orders Service
Access : http://<host>/<base>/administrator/components/com_vm_soa/services/VM_OrderWSDL.php
Functions : GetOrder
Output: Order
33
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Order_id Order : id user_id vendor_id order_number user_info_id order_total order_subtotal order_tax_details order_shipping order_shipping_tax coupon_discount coupon_code order_discount order_currency order_status cdate mdate ship_method_id customer_note ip_address Output: Array of orders
Functions : GetAllOrders
34
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Limits: limite_start limite_end Order : id user_id vendor_id order_number user_info_id order_total order_subtotal order_tax_details order_shipping order_shipping_tax coupon_discount coupon_code order_discount order_currency order_status cdate mdate ship_method_id customer_note ip_address Output: OrderStatus OrderStatus: order_status_id order_status_code order_status_name order_status_description list_order vendor_id Output: Array of orders
orders
Functions : getOrderStatus
Input: LoginInfo
Functions : getOrdersFromStatus
35
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Order : id user_id vendor_id order_number user_info_id order_total order_subtotal order_tax_details order_shipping order_shipping_tax coupon_discount coupon_code order_discount order_currency order_status cdate mdate ship_method_id customer_note ip_address Output: String
Functions : UpdateOrderStatus
Functions : CreateOrder
Input: loginInfo statusInfo statusInfo: order_id status notify comment Input: loginInfo orderInput
Comments: Update status of an order and notify customer with comment Comments: Create an order
Output: result
36
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com orderInput user_id shipping_method shipping_carrier_name shipping_rate_name shipping_price shipping_rate_id price_including_tax product_currency customer_note payment_method_id coupon_code vendor_id products (array) product_id description quantity Input: loginInfo Input: loginInfo coupon_id coupon_code percent_or_total (values : percent / total) coupon_type (values : gift / permanent ) coupon_value Input: loginInfo Array of id Input: LoginInfo Input: LoginInfo Input:
Comments: Comments:
Comments:
37
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com AddShippingRate AddShippingRate loginInfo Array of ShippingRate result ShippingRate: shipping_rate_name shipping_rate_carrier_id shipping_rate_country shipping_rate_zip_start shipping_rate_zip_end shipping_rate_weight_st art shipping_rate_weight_en d shipping_rate_value shipping_rate_package_ fee shipping_rate_currency_ id shipping_rate_vat_id shipping_rate_list_order Input: Output: loginInfo Array of ShippingRate ShippingRate: shipping_rate_name shipping_rate_carrier_id shipping_rate_country shipping_rate_zip_start shipping_rate_zip_end shipping_rate_weight_st art shipping_rate_weight_en d shipping_rate_value shipping_rate_package_ fee shipping_rate_currency_ id shipping_rate_vat_id shipping_rate_list_order Input: Output:
Functions : UpdateShippingRate
Comments:
Functions :
Comments: 38
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com AddShippingCarrier loginInfo Array of ShippingCarrier ShippingCarrier shipping_carrier_id shipping_carrier_name shipping_carrier_list_ord er Input: loginInfo Array of ShippingCarrier Input: loginInfo Array of ShippingCarrier ShippingCarrier shipping_carrier_id shipping_carrier_name shipping_carrier_list_ord er loginInfo Array of id Input: loginInfo Array of id Input: LoginInfo Input: loginInfo PaymentMethod
result
Output:
Comments:
Output:
Comments:
Comments: Comments:
39
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com PaymentMethod payment_method_id vendor_id payment_method_name payment_class shopper_group_id payment_method_disco unt payment_method_disco unt_is_percent payment_method_disco unt _max_amount payment_method_disco unt _min_amount list_order payment_method_code enable_processor is_creditcard payment_enabled accepted_creditcards payment_extrainfo Functions : Input: UpdatePaymentMethod loginInfo PaymentMethod
Output: result
Comments:
40
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com PaymentMethod payment_method_id vendor_id payment_method_name payment_class shopper_group_id payment_method_disco unt payment_method_disco unt _is_percent payment_method_disco unt _max_amount payment_method_disco unt _min_amount list_order payment_method_code enable_processor is_creditcard payment_enabled accepted_creditcards payment_extrainfo Input: loginInfo Array of id Input: loginInfo order_status date_start (format YYYY-MM-DD) date_end (format YYYY-MM-DD) Input: loginInfo
Comments:
Comments:
Functions : GetAllCreditCard
Functions :
Input:
Comments:
Comments: 41
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com AddCreditCard loginInfo CreditCard CreditCard: creditcard_id vendor_id creditcard_name creditcard_code Input: loginInfo CreditCard CreditCard: creditcard_id vendor_id creditcard_name creditcard_code Input: loginInfo id Input: loginInfo OrderStatus OrderStatus: order_status_id order_status_code order_status_name order_status_description list_order vendor_id Input: loginInfo OrderStatus result
Functions : UpdateCreditCard
Output: result
Comments:
Comments:
Comments:
Functions : UpdateOrderStatusCo de
Output: result
Comments:
42
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com OrderStatus: order_status_id order_status_code order_status_name order_status_description list_order vendor_id
Functions : DeleteOrderStatusCod e
Input: loginInfo id
Output:
Comments:
43
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com 7.4. Users Service
44
VM_Users Service
Access : http://<host>/<base>/administrator/components/com_vm_soa/services/VM_UsersWSDL.php
Functions : Authentification
Functions : GetUsers
45
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com limite_start Users : limite_end id (if empty, default 0- login 50) password email firstname lastname description address title city zipcode phone fax mobile cdate mdate perms bank_account_nr bank_name bank_sort_code bank_iban bank_account_holder bank_account_type shopper_group_id (not implemented) customer_number groupe_id (gid) user_info_id address_type address_type_name company middle_name phone_2 extra_field_1 extra_field_2 extra_field_3 extra_field_4 extrtra_field_5 COM_VM_SOA : User Manual Created 25/03/2010
46
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Functions : AddUser Input: LoginInfo User Output: result
user in
47
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Users : id login password email firstname lastname description address title city zipcode phone fax mobile cdate mdate perms bank_account_nr bank_name bank_sort_code bank_iban bank_account_holder bank_account_type shopper_group_id (not implemented) customer_number groupe_id (gid) user_info_id address_type address_type_name company middle_name phone_2 extra_field_1 extra_field_2 extra_field_3 extra_field_4 extrtra_field_5 COM_VM_SOA : User Manual Created 25/03/2010 String result
48
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Functions : DeleteUser Input: LoginInfo User_id User_id Output: result String result
Functions : sendMail
Input: LoginInfo EmailParams EmailParams: from_mail from_name recipient subject body altbody Input: LoginInfo SearchParams
Output: result
Functions : GetUserFromEmailOrUsernam e
Output: User
49
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com SearchParams Email Username Searchtype (VALUE : user_id, email , username) Users : id login password email firstname lastname description address title city zipcode phone fax mobile cdate mdate perms bank_account_nr bank_name bank_sort_code bank_iban bank_account_holder bank_account_type shopper_group_id (not implemented) customer_number groupe_id (gid) user_info_id address_type address_type_name company middle_name phone_2 extra_field_1 extra_field_2 extra_field_3 extra_field_4 extrtra_field_5
50
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Functions : getAllCountryCode Functions : getAuthGroup Input: LoginInfo Input: LoginInfo Output: result Output: group_id group_name group_level Output:
Comments:
Comments:
Functions : AddAuthGroup
Input: loginInfo group_id group_name group_level Input: loginInfo group_id Input: loginInfo country_id Input: loginInfo country_id Array of States State: state_id country_id state_name state_3_code state_2_code Input: loginInfo Array of id Input:
Comments:
Comments:
Comments:
Comments:
Comments: of Comments:
51
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com getShopperGroup loginInfo ShopperGroup: shopper_group_id vendor_id shopper_group_nam e shopper_group_desc shopper_group_disco un show_price_including _tax default Output: result
Functions : addShopperGroup
Functions : updateShopperGroup
Input: loginInfo Array of ShopperGroup ShopperGroup: shopper_group_id vendor_id shopper_group_nam e shopper_group_desc shopper_group_disco un show_price_including _tax default Input: Output: loginInfo result Array of ShopperGroup ShopperGroup: shopper_group_id vendor_id shopper_group_nam e shopper_group_desc shopper_group_disco un show_price_including _tax default
Comments:
Comments:
52
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Functions : deleteShopperGroup Functions : updateUser Input: loginInfo Array of id Input: loginInfo User Output:
Comments:
Output:
Comments:
53
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Users : id login password email firstname lastname description address title city zipcode phone fax mobile cdate mdate perms bank_account_nr bank_name bank_sort_code bank_iban bank_account_holder bank_account_type shopper_group_id (not implemented) customer_number groupe_id (gid) user_info_id address_type address_type_name company middle_name phone_2 extra_field_1 extra_field_2 extra_field_3 extra_field_4 extrtra_field_5 COM_VM_SOA : User Manual Created 25/03/2010
54
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Functions : getAllVendor Input: loginInfo Output: Array of Vendor
Comments:
55
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Vendor: vendor_id vendor_name contact_last_name contact_first_name contact_middle_nam e contact_title contact_phone_1 contact_phone_2 contact_fax contact_email vendor_phone vendor_address_1 vendor_address_2 vendor_city vendor_state vendor_country vendor_zip vendor_store_name vendor_store_desc vendor_category_id vendor_thumb_image vendor_full_image vendor_currency cdate mdate vendor_image_path vendor_terms_of_ser vice vendor_url vendor_min_pov vendor_freeshipping vendor_currency_dis play_style vendor_accepted_cur rencies vendor_address_for mat vendor_date_format COM_VM_SOA : User Manual Created 25/03/2010
56
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com Functions : AddVendor Functions : UpdateVendor Functions : DeleteVendor Functions : GetAllVendorCategory Input: loginInfo Vendor Input: loginInfo Vendor Input: loginInfo Id Input: loginInfo Output: result Output: result Output: result Output: Array of VendorCategory VendorCategory: vendor_category_id vendor_category_na me vendor_category_des c Output: result Output: result Output: result
Comments:
Comments:
Comments:
Comments:
Input: loginInfo VendorCategory Input: loginInfo VendorCategory Input: loginInfo Id Input: loginInfo
Comments:
Comments:
Comments:
Output: Comments: Array of Manufacturer VendorCategory: manufacturer_id mf_name mf_email mf_desc mf_category_id mf_url Output:
Functions :
Input:
Comments: 57
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com AddManufacturer Functions : UpdateManufacturer Functions : DeleteManufacturer Functions : GetAllManufacturerCat loginInfo Manufacturer Input: loginInfo Manufacturer Input: loginInfo Id Input: loginInfo result Output: result Output: result Output: Array of ManufacturerCat VendorCategoryCat: mf_category_id mf_category_name mf_category_desc Output: result Output: result Output: result Output: Array of imageAvailable imageAvailable: image_name image_url Output: SOA_For_Virtuemart _Version Joomla_Version Virtuemart_Version Database_Version Author
Comments:
Comments:
Comments:
Input: loginInfo Manufacturer Input: loginInfo Manufacturer Input: loginInfo Id Input: loginInfo
Comments:
Comments:
Comments:
Comments:
Functions : GetVersions
Input: loginInfo
Comments:
58
VM_SQLQueries Service
Access : http://<host>/<base>/administrator/components/com_vm_soa/services/VM_SQLQueriesWSDL.php
Functions : ExecuteSQLQuery
Input: LoginInfo sqlRequest Input: LoginInfo QueryInfo QueryInfo: Table WhereClause Columns: Column
Comments: Execute a generic result SQL Query Comments: Execute Select query
Functions : ExecuteSQLSelectQuery
SQL
Functions : ExecuteSQLInsertQuery
Output: Result
SOA For Virtuemart Component Mickael Cabanas http://www.virtuemart-datamanager.com QueryInfo: Table WhereClause Columns: Column Values Value Functions : Input: ExecuteSQLUdpateQuery LoginInfo QueryInfo QueryInfo: Table WhereClause Columns: Column Values Value String result
7.6. Upload Service This service is disabled by default : Go to SOA For Virtuemart component settings to enable. This service allow upload picture file on VM directories: Product : components/com_virtuemart/shop_image/product Category : components/com_virtuemart/shop_image/category Vendor : components/com_virtuemart/shop_image/vendor HTTP POST Params : "dir" : Possible value (category, product, vendor) "login" : (Admin login) "pass" : (Admin pass) Return code : If upload ok return : <result> upload OK </result> else return a 404 HTTP Status COM_VM_SOA : User Manual Created 25/03/2010 60