[英]First steps on liferay web services
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.