• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts & Web Service

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I search a simple, easy to setup, example, which shows how to use struts in combination with a webservice.

The example should include following:
- A struts action should call a controller. e.g. DBController.
- A Web Service should also use methods of DBController. Not necessarly direct - if another servlet is between, it's ok. (client - servlet - DBController)

Up to now i' was not able to find a simple example. There are a lot of information about struts or webservice but not both together.

wkr
Robert
 
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure if article in below link answers your question but it has good explanation for Web services with Struts applications

http://www-128.ibm.com/developerworks/webservices/library/ws-arcstruts/
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Dilip kumar:
I'm not sure if article in below link answers your question but it has good explanation for Web services with Struts applications

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



This article suggests an architecture matching ws and struts. However I couldn't compile the example, because it needs an API (import com.tbf.xml.* from a company long gone. So, if somebody has been succesful in compiling this program, please let me know.

Cesar
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why not look for a simple example that uses regular Servlets to hit a Web Service? It's the same thing.
 
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the first thing that came to my mind when i saw the thread title was...what the heck does WS has anything to do with struts? i am echoing that through marc's comment. where and how the data is being requested/retreived/served is independent of the controller and view (struts).
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic