Fórumok
calling a custom service in liferay
Abhi Ed, módosítva 11 év-val korábban
calling a custom service in liferay
Regular Member Bejegyzések: 118 Csatlakozás dátuma: 2012.06.04. Legújabb bejegyzések
hello,
I want to call a web service in my theme .For that i have created a jar which contains method for calling that web service .
I put that jar into lib/ext of my liferay jboss server.
Now in my navigation.vm can I access that service?
Am I doing sth wrong?Any suggestions?
I want to call a web service in my theme .For that i have created a jar which contains method for calling that web service .
I put that jar into lib/ext of my liferay jboss server.
Now in my navigation.vm can I access that service?
Am I doing sth wrong?Any suggestions?
Pinkesh Gandhi, módosítva 11 év-val korábban
RE: calling a custom service in liferay
Junior Member Bejegyzések: 99 Csatlakozás dátuma: 2012.01.27. Legújabb bejegyzések
I am not sure but as per my knowledge we can only access those classes which are set from com.liferay.portal.velocity.VelocityVariables or defined in init.vm or we can fetch Liferay services/utility by $serviceLocator/$utilLocator.
Pinkesh Gandhi, módosítva 11 év-val korábban
RE: calling a custom service in liferay
Junior Member Bejegyzések: 99 Csatlakozás dátuma: 2012.01.27. Legújabb bejegyzések
Amit Doshi, módosítva 11 év-val korábban
RE: calling a custom service in liferay
Liferay Master Bejegyzések: 550 Csatlakozás dátuma: 2010.12.29. Legújabb bejegyzésekAbhi Ed:
hello,
I want to call a web service in my theme .For that i have created a jar which contains method for calling that web service .
I put that jar into lib/ext of my liferay jboss server.
Now in my navigation.vm can I access that service?
Am I doing sth wrong?Any suggestions?
Abhi:-
Are you trying to access your own custom web service or liferay inbuilt web-service?
And one more thing, If you are trying to access Custom Web Service then make sure that it was created in Liferay Service Builder only. Don't Simply create the jar file and put it into the lib/ext, it will not work.
And after Creating the Custom Web-Service follow this link for access in theme.
Thanks & Regards,
Amit Doshi
Amit Doshi, módosítva 11 év-val korábban
RE: calling a custom service in liferay
Liferay Master Bejegyzések: 550 Csatlakozás dátuma: 2010.12.29. Legújabb bejegyzések
Abhi:-
Don't put unless it is required. For your current Scenario you can put your Jar file in theme itself, by mentioning them in the liferay-plugin-package.properties.
I put that jar into lib/ext of my liferay jboss server.
Don't put unless it is required. For your current Scenario you can put your Jar file in theme itself, by mentioning them in the liferay-plugin-package.properties.