Project

General

Profile

Webservices usage » History » Version 14

Mickael Cabanas, 08/17/2011 06:30 PM

1 1 Mickael Cabanas
h1. Webservices usage
2 2 Mickael Cabanas
3 4 Mickael Cabanas
SOAP Webservices are only avalaible in Virtuemart 2. To enable it go to Virtuemart configuration panel.
4 9 Mickael Cabanas
There are 6 WSDL contracts which contains more than 100 webservices.
5 5 Mickael Cabanas
6 9 Mickael Cabanas
- Categories
7 9 Mickael Cabanas
- Products
8 9 Mickael Cabanas
- Users
9 9 Mickael Cabanas
- Orders
10 9 Mickael Cabanas
- SQLQueries
11 9 Mickael Cabanas
- Customized
12 9 Mickael Cabanas
13 5 Mickael Cabanas
h2. Requierements
14 6 Mickael Cabanas
15 7 Mickael Cabanas
You need PHP 5.2 or higher and PHP SOAP modules enabled on your server.
16 7 Mickael Cabanas
17 7 Mickael Cabanas
h2. Configuration
18 7 Mickael Cabanas
19 7 Mickael Cabanas
- Default configuration is all webservices are disabled.
20 8 Mickael Cabanas
- All webervices need authentication with super user right.
21 8 Mickael Cabanas
- You can enable/disable authentication for some methods.
22 9 Mickael Cabanas
23 9 Mickael Cabanas
h2. WSDL access
24 9 Mickael Cabanas
25 10 Mickael Cabanas
WSDL are reachable at :
26 10 Mickael Cabanas
27 10 Mickael Cabanas
http://<hostname>/<joomladir>/administrator/components/com_virtuemart/services/VM_CategoriesWSDL.php
28 10 Mickael Cabanas
29 10 Mickael Cabanas
http://<hostname>/<joomladir>/administrator/components/com_virtuemart/services/VM_ProductWSDL.php
30 10 Mickael Cabanas
31 10 Mickael Cabanas
http://<hostname>/<joomladir>/administrator/components/com_virtuemart/services/VM_OrderWSDL.php
32 10 Mickael Cabanas
33 10 Mickael Cabanas
http://<hostname>/<joomladir>/administrator/components/com_virtuemart/services/VM_UsersWSDL.php
34 10 Mickael Cabanas
35 10 Mickael Cabanas
http://<hostname>/<joomladir>/administrator/components/com_virtuemart/services/VM_SQLQueriesWSDL.php
36 10 Mickael Cabanas
37 10 Mickael Cabanas
http://<hostname>/<joomladir>/administrator/components/com_virtuemart/services/VM_CustomizedWSDL.php
38 10 Mickael Cabanas
39 10 Mickael Cabanas
40 11 Mickael Cabanas
h2. Webservices tests
41 11 Mickael Cabanas
42 14 Mickael Cabanas
You can use a tool like "SOAPui":http://www.soapui.org/ to test webservices.
43 12 Mickael Cabanas
Create new project and add url to your WSDL.
44 13 Mickael Cabanas
Request is build automaticaly. Populate field like login/password and send request.
45 9 Mickael Cabanas