Link to home
Start Free TrialLog in
Avatar of mauriff
mauriff

asked on

Invoke Webservices Struts 2

Hi, I want invoke a Webservices from Action of Struts 2.
How I do this?
Avatar of Siva Prasanna Kumar
Siva Prasanna Kumar
Flag of India image

Just create a web service client jar, using the eclipse wizard and you can invoke them like normal java methods.

http://www.eclipse.org/webtools/jst/components/ws/1.5/tutorials/WebServiceClient/WebServiceClient.html

create a client project and then export all that code as jar file, and drop it in your web-inf/lib (with dependency jars) and that it you can invoke any of the operations of that web service like normal java methods.
Avatar of mauriff
mauriff

ASKER

ok, How I do this without wizard?,
I'm using Netbeans.
 
ASKER CERTIFIED SOLUTION
Avatar of Siva Prasanna Kumar
Siva Prasanna Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mauriff

ASKER

thanks