留言板

Web Service Client Implementation

Prashil D Thakur,修改在13 年前。

Web Service Client Implementation

New Member 帖子: 3 加入日期: 11-2-10 最近的帖子
Hi,

I am developing a portlet which needs to connect with SOAP/XML compliant WebService (delpoyed on different Tomcat Server other than Liferay-Tomcat-6).

Now as per documentation specified at http://www.liferay.com/community/wiki/-/wiki/Main/Creating+Liferay+6+plugin+web+service runtime eclipse plugin doesn't support building webservices.

Now I want to develop web service client inside Liferay portlet. So I have generated client code from wsdl with other Tomcat Environment and copiedthat client code into portlet code along with required jars.

But that code doesnot calls Web Service deployed on other tomcat server also it do not throws any exception. I have included all required jars in portlet plugin project inside Liferay.

Regards,
Prashil Thakur.
thumbnail
Balaji Murugesan,修改在12 年前。

RE: Web Service Client Implementation

Junior Member 帖子: 74 加入日期: 10-11-10 最近的帖子
Hi Prashil,

Even I am facing the same problem. Did you find a solution for this?
If so can you please share...
thumbnail
M. Garcia,修改在12 年前。

RE: Web Service Client Implementation

Regular Member 帖子: 107 加入日期: 11-5-17 最近的帖子
Hey Prashil and Balaji,

Take a look at this : WS Client app.

Once client side classes are generated, export the package as MyWSClientClasses.JAR.
Create your liferay portlet project and include that JAR in the build path.

You should be able to use those classes and thus your WS.