Hello,
I am trying to retrieve products list via SOAP webservice from a C# program with the getListOfProductsOrServices API.The XML I am receiving is as shown below: If you notice this word: SOAP-ENC:arrayType=":[2215]"><
I am getting an XML Document error because there is a β:β just before the [2215]. Can anyone explain why there is this colon and how to prevent from getting this in my XML response. Because of this error, my program is not being able to deserialise the XML document.
Secondly I want to know how to retrieve Products list with label and price.
Thanks.
Hello,
I have no idea about the column.
However, did you see this warning in Module Web Services API SOAP (developer) - Dolibarr ERP CRM Wiki
For the second question, you should have:
getListOfProductsOrService
Thank you Yves,
Actually I wanted to use REST first but we enabled in on the server but nothing happened. We cannot access it at all. Even the API explorer is not working. This is when we turned to SOAP.
Maybe you/someone can help setting up my REST properly.
Thanks a lot.
With rest API, what is blocking at first is the usage of API key.
You have to create it for the user, get it and use to send your requests.
https://wiki.dolibarr.org/index.php/Module_Web_Services_REST#List_of_provided_services
Hello,
The URL to generate the API key is not working.
I get the API key in USERS and GROUPS, and use it in my request - however getting Internal Server Error, Also the API explorer url also gives error 500 - internal server error.
Thanks to help.
Here the steps I used to access the API:
In module I activated API/REST module.
In users/groups, on my profile, I edit the profile. I regenerate the API key, then copy it.
I go to the link:
htdocs/api/index.php/explorer (prefix with your site base)
I get :
I paste the key in the DOLAPIKEY field, then click Explore.
I get the list of services
It seems that you have some problems on this path. Where?
Hello,
Thanks for your help however I did the same thing I cannot access API explorer.
I also regenerated the API Key in Users and Groups. My problem is I have the link for the API explorer displayed in REST API Module but it does not work. It gives error 500.
Pls find screenshot.
Thanks.
Pièces jointes :
- DolibarrRest.png (180 KB)
Hello,
Something is wrong in your installation. With the link to reset the key, I get an XML file as return.
Try to get a proper installation, or debug the error within log files.