I am seeking a way to access data from the Liferay portal using its JSON API through JavaScript client by making AJAX calls.
After some research, I was able to find the address for the API :
http://127.0.0.1:8080/tunnel-web/secure/json
There is also a SOAP web service available at this address:
http://127.0.0.1/:8080/tunnel-web/secure/axis
Upon authentication, the SOAP version returns a list of services with WSDL descriptors, but the JSON version does not display anything (with an HTTP status of 200).
I attempted a request like this one:
http://127.0.0.1:8080/tunnel-web/secure/json?serviceClassName=com.liferay%C2%AD.portal.service.CountryServiceUtil&serviceMethodName=getCountries
This resulted in a 404 error: HTTP Status 404 - /tunnel-web/c/portal/status "Resource is not available"
What could be causing this issue? How can I retrieve the data in JSON format?
Running on Liferay 6.06
Thank you for any assistance :)
EDIT :
Please note that I have successfully passed the authentication process, either by providing login credentials when prompted by the browser or by including them in the URL:
http://login:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a5d5c4d6d6d2cad7c1e59497928b958b94">[email protected]</a>:8080/...
Therefore, authentication is not the cause of the issue here :/