Liferay’s 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 generating your app’s local services. But what if you want to use Service Builder to generate your app’s remote services? And how should you invoke remote services generated by Service Builder? No sweat! That’s exactly what the tutorials here cover. This section shows you how to use Service Builder to create JSON and SOAP web services, and how to invoke those services. Because Liferay’s own developers use Service Builder to generate JSON and SOAP web services, knowing how to invoke these services is especially important. This section includes the following tutorials:

Creating Remote Services

Many default Liferay Portal services are available as web services. Liferay Portal exposes its web services via JSON and SOAP web services. If you’re running the portal locally on port 8080, visit...

Read More

Invoking Remote Services

You can invoke the remote services of any installed Liferay application the same way that you invoke your local services. Doing so could be described as “invoking remote services locally.” One...

Read More

Service Security Layers

Liferay’s remote services are secured by default. They sit behind a layer of security that allows only local connections. To invoke Liferay services from a remote client, you must take deliberate...

Read More

Registering JSON Web Services

Liferay’s developers use a tool called Service Builder to build services. When you build services with Service Builder, all remote-enabled services (i.e., service.xml entities with the property...

Read More

Invoking JSON Web Services

If you know the URL and are connected to the internet, invoke Liferay’s JSON web service API in any language you want or directly with the URL or cURL. Additionally, Liferay provides a handy JSON...

Read More

JSON Web Services Invoker

To use JSON web services, you send a request that defines a service method and parameters, and you receive the result as a JSON object. As straightforward as this seems, it can be improved. In this...

Read More

JSON Web Services Invocation Examples

This tutorial provides examples of invoking Liferay’s JSON web services via JavaScript, URL, and cURL. To illustrate the differences between these, the same two use cases (getting a user and adding...

Read More

Configuring JSON Web Services

JSON web services are enabled in Liferay by default. If you need to disable them, specify this portal property setting in a 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)
JAX-WS and JAX-RS Previous