Difference between revisions of "Module Web Services API SOAP (developer)"

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
'''/webservices/server.php'''
 
'''/webservices/server.php'''
  
For example on Dolibarr demo, send your SOAP requests to  
+
For example on Dolibarr demo, send your SOAP requests to '''http://demo.dolibarr.org/webservices/server.php'''
http://demo.dolibarr.org/webservices/server.php
 
 
 
  
Only few services are available.
 
  
You can see list of Dolibarr Webservices provided by calling the URL with no POST parameters.  
+
Only few services are available. You can see full list of Dolibarr Webservices provided, by calling the URL with no POST parameters.  
  
 
For example, to see all Webservices functions available on Dolibarr demo, just call the following URL with no parameters:
 
For example, to see all Webservices functions available on Dolibarr demo, just call the following URL with no parameters:
 
  http://demo.dolibarr.org/webservices/server.php
 
  http://demo.dolibarr.org/webservices/server.php
  
To get the WSDL file of services, you can call:
+
To get the WSDL file that describe webservices contracts, you can call:
 
  http://demo.dolibarr.org/webservices/server.php?wsdl
 
  http://demo.dolibarr.org/webservices/server.php?wsdl
  

Revision as of 16:31, 10 April 2009

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 /webservices/server.php

For example on Dolibarr demo, send your SOAP requests to http://demo.dolibarr.org/webservices/server.php


Only few services are available. You can see full list of Dolibarr Webservices provided, by calling the URL with no POST parameters.

For example, to see all Webservices functions available on Dolibarr demo, just call the following URL with no parameters:

http://demo.dolibarr.org/webservices/server.php

To get the WSDL file that describe webservices contracts, you can call:

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

http://demo.dolibarr.org/webservices/client.php