Module Web Services API SOAP (developer): Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{TemplateDocDevEn}}
{{TemplateDocDevEn}}
Dolibarr provide a server and a client for web services in directory htdocs/webservices. This server use embended php Nusoap library (no need to add PHP module) modified to work with PHP4 and PHP5.
 
== Dolibarr web services server ==
Dolibarr provides a server and a client for web services in directory htdocs/webservices. This server use embended php Nusoap library (no need to add PHP module) modified to work with PHP4 and PHP5.
You can send your own SOAP request to relative URL
You can send your own SOAP request to relative URL
/webservices/server.php
'''/webservices/server.php'''
For example on Dolibarr demo, call  
For example on Dolibarr demo, call  
  http://demo.dolibarr.org/webservices/server.php
  http://demo.dolibarr.org/webservices/server.php
Line 10: Line 12:
You can see list of Dolibarr Webservices provided by calling the URL with no POST parameters. So just call the URL '''http://yourdolibarrvirtualhost/webservices/server.php''' to see list of available functions.
You can see list of Dolibarr Webservices provided by calling the URL with no POST parameters. So just call the URL '''http://yourdolibarrvirtualhost/webservices/server.php''' to see list of available functions.


Note that you can see an example of a PHP client calling this relative URL
To get the WSDL file of services, you can call
/webservices/server.php
http://demo.dolibarr.org/webservices/server.php?wsdl
 
 
== Dolibarr web services client ==
Note that you can see an example of code for a PHP client calling this relative URL
'''/webservices/server.php'''
For example on Dolibarr demo, call  
For example on Dolibarr demo, call  
  http://demo.dolibarr.org/webservices/client.php
  http://demo.dolibarr.org/webservices/client.php

Navigation menu