Liferay 7 - Service builder - JSON restful service is not shown
<p>I'm currently working in Liferay 7 and trying to build my first service for the portal. </p>

<p>For this I have created a new service builder model, added my first simple method, added necessary annotations and try now to deploy the webservice. But the json service seems not to be correctly registerd. I cannot see any entry under "<a href="http://localhost:8080/api/jsonws" rel="nofollow">http://localhost:8080/api/jsonws</a>".</p>

<p>My code looks as follows (only service interface and implementation):</p>

<p><strong>ServiceInterface:</strong></p>

<pre><code>@AccessControlled
@JSONWebService()
@OSGiBeanProperties(property =  {"json.web.service.context.name=dynamicdataasset","json.web.service.context.path=DynamicDataAsset"}, service = DynamicDataAssetService.class)
@ProviderType
@Transactional(isolation = Isolation.PORTAL, rollbackFor = {PortalException.class, SystemException.class})
public interface DynamicDataAssetService extends BaseService {


/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
public java.lang.String getOSGiServiceIdentifier();
</code></pre>

<p>}</p>

<p><strong>ServiceImpl:</strong></p>

<pre><code>@ProviderType
@JSONWebService("dynamic-data-assets")
public class DynamicDataAssetServiceImpl extends DynamicDataAssetServiceBaseImpl {

/**
 * Test method to see if the service is available.
 * @return
 */
@JSONWebService(value = "get-availability-of-service", method = "GET")
public String getAvailabilityOfService() {
    return "Service is available";
}
</code></pre>

<p>}</p>

<p><strong>service.xml</strong></p>

<pre><code>&lt;?xml version="1.0"?&gt;
&lt;!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 7.0.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_7_0_0.dtd"&gt;

&lt;service-builder package-path="eu.gerhards.liferay.dynamic.data.list.assets"&gt;
&lt;namespace&gt;DynamicDataAsset&lt;/namespace&gt;
&lt;entity local-service="true" name="DynamicDataAsset" remote-service="true" uuid="false" human-name="DynamicDataAsset"&gt;
...
</code></pre>

<p>I followed the tutorial which can be found here: <a href="https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/service-builder-web-services" rel="nofollow">https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/service-builder-web-services</a>.</p>

<p>Can anyone tell me, what is wrong and point me in the right direction?</p>

<p>Thanks a lot</p>

<p>Udo </p>