Generating and invoking web services is a central part of the Liferay development experience. After all, what good is it if you can’t generate remote services for an app you’re developing, or call Liferay’s built-in remote services? It’s no good at all! Liferay without web services would be like a luxury car without wheels. Fortunately, Liferay comes with full set of JSON and SOAP web services that you can invoke until your heart’s content. Liferay also provides Service Builder to generate local and remote services for your apps.

The tutorials that follow show you how to work with web services in Liferay:

Read on to learn all about web services on Liferay’s development platform.

JAX-RS

JAX-RS web services work in Liferay modules the same way they work outside of Liferay. The only difference is that you must register the class in the OSGi framework. Liferay’s development tools...

Read More

JAX-WS

Liferay supports JAX-WS via the Apache CXF implementation. Apps can publish JAX-WS web services to the CXF endpoints defined in your Liferay instance. CXF endpoints are effectively context paths...

Read More

Service Builder Web Services

Service Builder can generate local and remote services for your Liferay apps. The section of tutorials on Service Builder gives a general introduction to Service Builder, as well as instructions on...

Read More

JSON Web Services Invoker

With JSON web services, you send a request to a service method with parameters, and you receive the result as a JSON object. As straightforward as this seems, it can be improved. In this tutorial,...

Read More

Configuring JSON Web Services

JSON web services are enabled in Liferay by default. If you must disable them, specify this portal property setting in a portal-ext.properties file: json.web.service.enabled=false This tutorial...

Read More

SOAP Web Services

You can access Liferay’s web services via Simple Object Access Protocol (SOAP) over HTTP. The packaging protocol is SOAP, and the transport protocol is HTTP. Note: An authentication token must...

Read More
0 (0 Votes)
Service Access Policies Previous