• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web service in struts

 
Jomy George
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,

i have two implement a few webservice in a new java server.
i am planning to do it using struts framework.
Is there any special features available for webservice creation in struts ?

can anyone give me an example link?

thanks in advance...
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on what your requirements are. Struts supports REST and JSON. You can return XML instead of HTML from your actions.
 
Jomy George
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks jos,

so can i use my action class to process the request and return an xml string?
is there a need to add any special package for webservice?

 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jomy George wrote:so can i use my action class to process the request and return an xml string?


Struts is built on Servlets, which is built on CGI which is built on HTTP which can transport any file type.

Jomy George wrote:
is there a need to add any special package for webservice?


That depends on what you mean by "webservice".
I've already pointed you to the REST and JSON plugins. What other technologies are you looking at?
 
Jomy George
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jos i have no idea about where to start.
i just need to create some webservice in my server which communicate via xml

i am planning to handle this via soap request and response...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic