简体   繁体   中英

First steps on liferay web services

  • I followed this tutorial -documentation about Liferay Web service.
  • I runned Lifaray on tomcat
  • If I use http://localhost:8080/api/axis/Portal_UserService?wsdl by browser I have a response.
  • When I create a webService Client on Eclipse and I put this url http://localhost:8080/api/axis/Portal_UserService?wsdl in the Service Definition... but I have this error message:

    No server can be found and WebServiceProject does not exist. Choose an existing project or use the preferences to configure a server runtime.
    Why?

在此输入图像描述在此输入图像描述

This does not mean that the server (eg Liferay) can't be found but notifies you that Eclipse doesn't know where to put/how to configure the resulting WebService: It needs a server runtime and a WebServiceProject - eg you can create a WebServiceClient inside a project - if no suitable project exists, eclipse will complain.

So: Everything is fine on the Liferay side. You'll need infrastructure in your IDE to be able to go forward with this operation

创建动态Web项目并配置服务器,然后添加wsdl。

I could not find any solution to this, for some reason Eclipse didn't recognize a valid wsdl . I downloaded a trial version of IntelliJ IDEA 13 Ultimate and setup the Web Service Client through there. Everything worked properly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM