Results 1 to 1 of 1
Thread: RestFul Webservice
- 10-26-2010, 01:27 PM #1
Member
- Join Date
- Jun 2010
- Posts
- 3
- Rep Power
- 0
RestFul Webservice
Hi All
I have a Restful webservice which reads the data from ur [ http://localhost:8080/ProviderStatsW...ddate/filename ] and get the response from DB and prints the same data in an xml format.
The above code reads the startdate , enddate , filename from url and returns the data.Java Code:import java.util.ArrayList; import java.util.List; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; @Path("/{start}/{end}/{file}") public class ProviderService { public ProviderService() { } @GET @Produces(MediaType.APPLICATION_XML) public ProviderStatsService getProviderInfo( @PathParam("start") String startDate, @PathParam("end") String endDate, @PathParam("file") String file) { return providerStatsService; }
Now my requirement is My WS has to read the xml file and set the startdate, enddate,filename to the above method getProviderInfo().
Can anybody please help me out with details , how the client will pass the xml file and how should i read the values from xml file using RestFul WebService1
Thanks in Advance
DeepaksurthiLast edited by deepaksurthi; 10-26-2010 at 01:32 PM.
Similar Threads
-
Please help me in webservice
By javastuden in forum New To JavaReplies: 0Last Post: 10-11-2010, 12:13 PM -
Invocation of Restful services thru POST request
By userj2ee in forum Advanced JavaReplies: 0Last Post: 05-06-2010, 11:40 AM -
RESTful Web Service
By aakinn in forum New To JavaReplies: 0Last Post: 04-13-2010, 04:06 PM -
servlet and webservice
By fhenix44 in forum Java ServletReplies: 1Last Post: 01-15-2009, 08:59 PM -
Webservice ain't working?
By marcelman in forum NetworkingReplies: 0Last Post: 08-10-2007, 02:48 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks