简体   繁体   English

liferay网络服务的第一步

[英]First steps on liferay web services

  • I followed this tutorial -documentation about Liferay Web service. 我遵循了本教程 - 关于Liferay Web服务的文档。
  • I runned Lifaray on tomcat 我在tomcat上运行了Lifaray
  • If I use http://localhost:8080/api/axis/Portal_UserService?wsdl by browser I have a response. 如果我通过浏览器使用http://localhost:8080/api/axis/Portal_UserService?wsdl我有一个响应。
  • 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: 当我在Eclipse上创建一个webService客户端时,我把这个url http://localhost:8080/api/axis/Portal_UserService?wsdl放在服务定义中......但是我有这个错误消息:

    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. 这并不意味着无法找到服务器(例如Liferay),而是通知您Eclipse不知道放置位置/如何配置生成的WebService:它需要服务器运行时和WebServiceProject - 例如,您可以创建一个项目中的WebServiceClient - 如果没有合适的项目,eclipse会抱怨。

So: Everything is fine on the Liferay side. 所以:Liferay方面的一切都很好。 You'll need infrastructure in your IDE to be able to go forward with this operation 您需要IDE中的基础结构才能继续执行此操作

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

I could not find any solution to this, for some reason Eclipse didn't recognize a valid wsdl . 我找不到任何解决方案,因为某些原因Eclipse没有识别出有效的wsdl I downloaded a trial version of IntelliJ IDEA 13 Ultimate and setup the Web Service Client through there. 我下载了IntelliJ IDEA 13 Ultimate的试用版并在那里设置了Web Service Client Everything worked properly. 一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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