Fórum

SOAP Web service problem

Gerd Feder, modificado 9 Anos atrás.

SOAP Web service problem

Junior Member Postagens: 25 Data de Entrada: 03/09/14 Postagens Recentes
Hi all,

We have problems accessing SOAP web services of a portlet.
Following requirement: we need to access a portlet via a SOAP web service.
We have created a new portlet via the Plugins-SDK, specified the entity and portletnamespace in the service.xml, specified methods in <entityname>ServiceImpl-classes and <entityname>LocalServiceImpl-classes. Started the build-service ant target.
After these steps we started the build-wsdd ant target, deployed the portlet and started the server.
Trying to access http://localhost:8080/api/axis/Plugin_<portletnamespace>_<entityname>Service?wsdl in the browser causes following error messages:

AXIS Error
Could not generate WSDL!
There is no SOAP service at this location


We are using Liferay 6.2 GA2.
Do we use the right url for SOAP web services?
Any idea what could be the problem.

Thank you.
Best regards
Gerd Feder, modificado 9 Anos atrás.

RE: SOAP Web service problem

Junior Member Postagens: 25 Data de Entrada: 03/09/14 Postagens Recentes
Hi again,

is there anyone who have an idea or have experiences regarding this? What about developer/staff from liferay itself??

Thank you very much!
Regards
thumbnail
Hitesh Methani, modificado 9 Anos atrás.

RE: SOAP Web service problem

Regular Member Postagens: 171 Data de Entrada: 24/06/10 Postagens Recentes
Hello Gerd,

Are you able to see <EntityName>Service_deploy.wsdd generated under http folder of your portlet?

Thanks,
Hitesh Methani.
thumbnail
Jayaram pokuri, modificado 9 Anos atrás.

RE: SOAP Web service problem

New Member Postagens: 22 Data de Entrada: 03/07/13 Postagens Recentes
Hi Gerd Feder,

The URL (http://localhost:8080/api/axis/Plugin_<portletnamespace>_<entityname>Service?wsdl), which you are trying to access is for Liferay core web services.
for custom portlets, URL path is :
http://localhost:8080/<portlet-name>/api/axis/Plugin_<portletnamespace>_<entityname>Service?wsdl</entityname></portletnamespace></portlet-name>

<portlet-name> is portlet folder name of the portlet in the tomcat/webapps.

Hope this works. Let me know if you are facing any issues.
Thanks,
Jayaram
Gerd Feder, modificado 9 Anos atrás.

RE: SOAP Web service problem

Junior Member Postagens: 25 Data de Entrada: 03/09/14 Postagens Recentes
Thats it!!
Thank you very much !!
Gerd Feder, modificado 9 Anos atrás.

RE: SOAP Web service problem

Junior Member Postagens: 25 Data de Entrada: 03/09/14 Postagens Recentes
Additional issue to web services:
is it possible to create web services with a parameter where the type of the parameter is not a java class but a xml-schema definition?
public int transmitMessageItem(MessageItem messageItem)

where MessageItem is defined in a xsd-file ..
Is this possible? What have to be done?
Thank you.
Regards