Foros de discusión

JSON services

thumbnail
Tonu Sri, modificado hace 11 años.

JSON services

Regular Member Mensajes: 197 Fecha de incorporación: 15/04/11 Mensajes recientes
Hi,

How to see available JSON services in Liferay 6 SP1.
I tried with http://localhost:8080/tunnel-web/secure/json but not able to see.
Please help.

Thanks
thumbnail
Ben Carson, modificado hace 11 años.

RE: JSON services

Junior Member Mensajes: 25 Fecha de incorporación: 9/01/12 Mensajes recientes
Try http://localhost:8080/api/secure/jsonws
I am using Liferay 6.1, so I don't know if its exactly the same for v6 SP1.

Hope that helps.
thumbnail
Tonu Sri, modificado hace 11 años.

RE: JSON services

Regular Member Mensajes: 197 Fecha de incorporación: 15/04/11 Mensajes recientes
Hi Ben,

Thanks for your reply.
There is too much diff between Liferay 6 SP1 and Liferay 6.1.
In Liferay 6.1 they are mapping with /api/jsonws url. But previously they were using tunnel-web.

So i am not able to access.

Thanks again
thumbnail
Ben Carson, modificado hace 11 años.

RE: JSON services

Junior Member Mensajes: 25 Fecha de incorporación: 9/01/12 Mensajes recientes
Tonu,
Found this on StackOverflow. Doesn't look like JSON web services are available at all for pre-6.1 Liferay installations.
Were you able to access the 'tunnel-web' URL at all on Liferay 6.0.x? From the answer on SO, it seems as though the 'tunnel-web' applies to version 6.1 as well, just pre-RC versions of 6.1.

Ben
thumbnail
Tonu Sri, modificado hace 11 años.

RE: JSON services

Regular Member Mensajes: 197 Fecha de incorporación: 15/04/11 Mensajes recientes
Hi Ben,

Thanks for the information.
Yes , you are right!
Tunnel-web was available with Liferay 6.1 RC bundle.
I am using Liferay 6.1 EE, so its not there:

In Liferay 6.1 EE, i am able to access webservices using this url:
http://localhost:8080/api/jsonws (JSON)
http://localhost:8080/api/axis (SOAP)

In Liferay 6.0 EE , i am able to access only SOAP based services using:

http://localhost:8080/tunnel-web/axis

So my concern is how to acess JSON services available in Liferay 6.0 EE.

Thanks: