Foren
how to consume custom services in liferay ?
Eldho Issac, geändert vor 11 Jahren.
how to consume custom services in liferay ?
New Member Beiträge: 4 Beitrittsdatum: 28.11.12 Neueste Beiträge
I need to use a web service in my liferay portlet which is in local network . Pls tell how to configure portal-ext.properties.
Sushil Kumar Saini, geändert vor 11 Jahren.
RE: how to consume custom services in liferay ?
Regular Member Beiträge: 104 Beitrittsdatum: 27.07.11 Neueste Beiträge
Hi Eldho,
For consuming the web service provided by liferay. Following configuration is required.
Add the ip of host machine in the below property of the portal-ext.properties
And while calling the web service provide the user credentials in the url in the following format.
Thanks & Regards
Sushil Saini
For consuming the web service provided by liferay. Following configuration is required.
Add the ip of host machine in the below property of the portal-ext.properties
axis.servlet.hosts.allowed=192.168.100.100, 127.0.0.1, SERVER_IP
And while calling the web service provide the user credentials in the url in the following format.
http://" + userIdAsString + ":" + password + "@<server.com>:<port>/api/secure/axis/" + serviceName
</port></server.com>
Thanks & Regards
Sushil Saini