Foros de discusión

Web services of Reports do not have any operations???

thumbnail
Jonas Yuan, modificado hace 14 años.

Web services of Reports do not have any operations???

Liferay Master Mensajes: 993 Fecha de incorporación: 27/04/07 Mensajes recientes
Hi,

Web services of Reports do not have any operations. You can check the code

ReportsEntryServiceHttp.java
and
ReportsEntryServiceSoap.java

at

\ext\ext-impl\src\com\ext\portlet\reports\service\http

A bug? Any reason? your comments?

Thanks

Jonas Yuan
----------------------
Liferay Books
Liferay Portal 5.2/5.3 Systems Development
Liferay Portal 4.4/5.0 Enterprise Intranets
thumbnail
Amos Fong, modificado hace 14 años.

RE: Web services of Reports do not have any operations???

Liferay Legend Mensajes: 2047 Fecha de incorporación: 7/10/08 Mensajes recientes
I think these are sample files for users to get started in the ext environment. So I guess these files are like placeholders and that's why they're empty.
thumbnail
Jonas Yuan, modificado hace 14 años.

RE: Web services of Reports do not have any operations???

Liferay Master Mensajes: 993 Fecha de incorporación: 27/04/07 Mensajes recientes
Hi Amos,

Now let's test the service builder. Generate server-config.wsdd: in build-parent.xml at /ext-impl, add

<target name="build-wsdd-portlet-reports">
<antcall target="build-wsdd">
<param name="service.file" value="src/com/ext/portlet/reports/service.xml" />
</antcall>
</target>

type: ant build-wsdd-portlet-reports

The web services (models and services) are generated without operations. As expected, the operations should be generated by the service builder, too.

This may be a bug. Right?

Thanks

Jonas Yuan

----------------------
Liferay Books
Liferay Portal 5.2/5.3 Systems Development
Liferay Portal 4.4/5.0 Enterprise Intranets
thumbnail
Jonas Yuan, modificado hace 14 años.

RE: Web services of Reports do not have any operations???

Liferay Master Mensajes: 993 Fecha de incorporación: 27/04/07 Mensajes recientes
Got it,

need to add operations in *ServiceImpl first as

package com.ext.portlet.reports.service.impl;

import com.ext.portlet.reports.service.base.ReportsEntryServiceBaseImpl;


public class ReportsEntryServiceImpl extends ReportsEntryServiceBaseImpl {

public String LoadArticle () {
return "Test";
}
}

then build services and wsdd as:

ant build-service-portlet-reports

ant build-wsdd-portlet-reports

The service builder will generate web services with pre-defined (above) operations.

Thanks

Jonas Yuan