post « restful « Java Enterprise Q&A





1. REST web service accepting a POST using Restlet - Best Practice    stackoverflow.com

I have my resource and they typical overridden method to handle POST requests.

public void acceptRepresentation(Representation rep) {

  if (MediaType.APPLICATION_XML.equals(rep.getMediaType())) {
      //Do stuff here
  }
 ...

2. how to get a the value of an http post as a whole? parsing restful post    stackoverflow.com

Is it my ideea or in rest-web services a post comes "with no name", so say something... I mean, is the post the whole body, minus headers??? so, how can I parse such ...

3. Setting up a Restful POST request using xml    stackoverflow.com

I'm working on setting up a RESTful request for the application I'm working on and I wanted to use xml as the request in the uri instead of allowing the client ...

4. Is it ok by REST to return content after POST?    stackoverflow.com

I am using RESTlet and I have created a resource. I handle POST by overriding acceptRepresentation method. Client should send me some data, then I store it to DB, set response to ...

5. Restlet ClientResource Post Chunked Encoding - WCF Unsuported    stackoverflow.com

I'm developing a product that will use extensively of Restlet for consume WCF Rest Services. I had created a method to post a XML of a class containing 2 attributes. Restlet post my xml ...

6. How to use RESTEasy client framework to send data in a POST    stackoverflow.com

I am using the RESTEasy client framework to call a RESTful webservice. The call is made via a POST and sends some XML data to the server. How do ...

7. Call POST method in RESTFul Web service    stackoverflow.com

I want to create a sample RESTful web service in java which involves all the four CRUD operations and I deployed it in tomcat. I used JAX-RS (Jersey) library to implement ...

8. How to Consume JSON as input in PUT and POST method of REST webservice in java    stackoverflow.com

I am trying to create a REST web service using JAX-RS. In that, I have PUT method or POST method which consumes the json as mediatype in the REST web service. ...

9. Accessing the body of a post RESTful request (Java)    stackoverflow.com

I can completely read a post request (headers + raw body) using com.sun.net.httpserver.HttpServer with an HttpHandler for it. But I can't do the same using a javax.xml.ws.WebServiceProvider I can read the headers, ...





10. Restlet response to POST request    stackoverflow.com

First off, I'm using an older version of Restlet (1.1). Secondly, I'm not sure I'm doing the correct thing. Here's what I'm trying to do... I'm creating a reporting service (resource). ...

11. JAX-RS Post multiple objects    stackoverflow.com

I have a method;

@POST
@Path("test")
@Consumes(MediaType.APPLICATION_JSON)
public void test(ObjectOne objectOne, ObjectTwo objectTwo)
Now I know I can post a single object in json format, just putting it into the body. But is it possible to do ...

12. Is it possible to post a variable length form with a file to a restful web service?    stackoverflow.com

I am trying to create a restful web service that will email data from a form. The form can have a variable number of fields and will include a file. I ...

13. Build a xml post request and accept the response using JSR in java    stackoverflow.com

I'm trying to build a rest client as well as a server using Post method. I have created a sample client to submit the rest request.

    public class ...

14. Posting XML as request body to Java Rest in c#    stackoverflow.com

I have application built with C# that consume Restful built with Java Expecting XML as request body.How do i go about it ?

15. Consuming a REST web service with HTTP POST    forums.netbeans.org

biooib Joined: 09 Jun 2009 Posts: 1 Posted: Wed Oct 07, 2009 10:25 am Post subject: Consuming a REST web service with HTTP POST Hi, first of all, ...





17. Consume REST service with POST    forums.netbeans.org

I have successfully follow the tutorial of building RESTful web service using Netbeans 6. I could not, however, find a good tutorial teaching how to build a simple Java client application to consume the REST service, mainly the POST method. The reason is that I need the Java application to insert new records in database. Anyone has a good link to ...

19. Rest based post for receiving and reponding with json    coderanch.com

First, what i wanted to know is what i am doing is the right way to do it. I have a scenario where i have will receive a json request and i have to update the database with that, once the db is updated i have to respond back with the json acknowledgment. What i have done so far is create ...

20. RESTful Java Client - Post Data Help neede    coderanch.com

Hi, I am trying to learn about RESTful java client. I have created a mysql db in my laptop and with netbeans 6.9 I am able to create a RESTful API with which I can get/put data on the web-browser. Now,I want to use the RESTful Java Client generated by NEtbeans to insert xml data into the database. The Netbeans generated ...

21. REST client with POST verb - some help needed    coderanch.com

Hi all, I am trying to write a REST client with POST/PUT verbs. The server is an Axis2 system using wsdl 2.0. The wsdl2 is the following: AuthService