Struts Application and Web Services
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, July 4, 2003 11:57 AM

Hello, I have an Struts Application. Now I need to expose some of it's functions in a WebService. I say that my Web Services must call my Action Classes. My problem is that I don't have any idea about that. I know web services with Axis o JWSDP, but I don't know how can I do to use it in my Struts Application. The sequence is like that: Browser WS Client | | ActionServlet WS Server | | Action Class <---------| | Business Logic I need help in call an Action class with the WS Server Class. Anybody can help me??? Regards Alejandro    More>>

Hello,
I have an Struts Application. Now I need to expose some of it's functions in a WebService. I say that my Web Services must call my Action Classes.
My problem is that I don't have any idea about that. I know web services with Axis o JWSDP, but I don't know how can I do to use it in my Struts Application.
The sequence is like that:
Browser WS Client
| |
ActionServlet WS Server
| |
Action Class <---------|
|
Business Logic

I need help in call an Action class with the WS Server Class.

Anybody can help me???

Regards
Alejandro

   <<Less

Re: Struts Application and Web Services

Posted By:   Anonymous  
Posted On:   Tuesday, July 22, 2003 05:37 AM

Hi,
I'm afraid you are not adhering to MVC by calling an action class from a Web service. Usually, the Action classes become clients to the web service. Please follow this link to architect struts apps for web services:

http://www-106.ibm.com/developerworks/webservices/library/ws-arcstruts/

I've successfuly implemented a PDF generator service using Apache FOP,Axis in a struts based web app using the above design.

Hope this helps
About | Sitemap | Contact