Two Laptop Bag*
The moose likes Struts and the fly likes develop web services in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "develop web services in struts" Watch "develop web services in struts" New topic
Author

develop web services in struts

madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
hi,
im new to webservices and struts....i had given to develop console application using webservices and struts...that means i need to develop webservices in struts.i had a doubt that is it possible to do webservices with struts...can any one help me out regarding this matter....or suggest me any information link for that...
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

All a "web service" is is something that returns data over the web. It could return JSON or XML (the most popular and obvious), or plain text, or... whatever your application expects to consume. You can develop a web service using *any* framework, including no framework at all.
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
hi,
i got what 'David' suggested..i searched in google im unable to find any site regarding developing webservices using struts in netbeans.....can anyone provide me the information
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What specific kind of information are you looking for?
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
hi,
i had given to develop application using webservices.....i had searched and done some sample application...my doubt is i need to develop that webservice application in struts2...im not getting any idea regarding that...can you suggest me how to do....i need to start my project....
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

And I'm asking what kind of information you're looking for, otherwise I have no idea how to help you.

All a web service is is an application that returns data via the web. It can be created using *anything*. Do you know what kind of data you have to return? XML? SOAP? JSON? Plain text? Do you know how people will be making requests of the service? XML? HTTP form data?
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
hi,
using SOAP...i dont have any idea regarding that and how to make request for that..can you help me...
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You want to make a SOAP *request*? I thought you were writing the service itself.

I'm not sure I'd bother using S2 to handle SOAP requests since there are existing SOAP frameworks already.
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
k...can you tell me is there any information regarding how to use SOAP.....and i had came to know that SOAPUI Pro is a tool where we can give the link of our webservices and followed with ?wsdl...but i dont know how to do all those things....
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

There are countless SOAP tutorials and blogs and documents available on the web. There's no way to encapsulate enough information to be useful in a simple, concise answer here. You may post specific questions in the web services forum here on JavaRanch, though.
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
k...i'll search it..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: develop web services in struts
 
Similar Threads
help for developing an sms application
Developing Web services
Webservices Sample Application(URGENT)
WEB Services for Exam Part 1
HTTPS Certifcates Basics