Hello everyone,
Recently, I opened a discussion about web service communications between two distinct Idempiere instances. Ok, all my questions about the server configuration were answered.
Now I need to consume this WS in one of Idempiere instances. I chose the RESTful way to consume my WS. I've been looking for one example, documentation or anything who explain the Idempiere-way to consume the WS with REST, but I had not success. :(
I have a little experience with REST using Ruby, but I think there are no diference in Java.
I did some tests, but I'm little confused about it. In first test, I inject the URL (
http://localhost:8081/ADInterface/services/rest/model_adservice/get_list) directly in browser, I expected to receive the XML structure, but have returned a blank page.
In Java test with HttpURLConnection, error 500 throws directly in my face. :/
BUT, if I test HttpURLConnection with GET ResquestMethod in
http://localhost:8081/ADInterface/services/rest?_wadl, I receive the XML structure.
Note: Yes, my port is 8081
Note 2: I could not find anything about how to consume Idempiere WS using REST.
Thanks. :)