I am trying to call this javascript method:
Liferay.Service.register("Liferay.Service.myservice", "de.package.service", "my-portlet");
But all I get is this error:
Liferay.Service.register is not a function.
(In 'Liferay.Service.register("Liferay.Service.myservice", "de.package.service", "my-portlet")', 'Liferay.Service.register' is undefined)
Honestly ... I have no idea why this is happening. Could anyone help me out here ?
Yea, here is the answer:
forget about Liferay.register and all that other Liferay. stuff. Use async json webservices instead.
works like a charm :)