Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6055557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:16:40+00:00 2026-05-23T08:16:40+00:00

I am pretty new to REST and Web Applications in general. I need to

  • 0

I am pretty new to REST and Web Applications in general.
I need to implement a REST call that adds more resources to the system. Some of the resources can be created by only an XML like a Folder. I am guessing it would be a PUT request and in the body to put the XML that describes the resource and on the server to process the request and create the Folder. Some resources require to be described (what it is, to who it belongs .. etc) and also to provide a file. for example an image.

i have few questions:
1. what is the best practice to handle httpServletRequest? it seem a little cumbersome object, i have read about HttpClient but i am not sure.
2. It sounds like a very common task in that every RESTful server is doing. is there a good tutorial/guide for it?

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:16:40+00:00Added an answer on May 23, 2026 at 8:16 am

    I have few questions: 1. what is the
    best practice to handle
    httpServletRequest? it seem a little
    cumbersome object, i have read about
    HttpClient but i am not sure.

    Assuming you are using Java you have several options here to implement a rest client. You can use the Apache HTTP Client, Spring RestTemplate, Jersey, to name a few. Next you need to find out the media type – is it xml, json, plain text, etc. This is how you would pass the data in the body of your request to the rest service. You will also need to find out how the service handles authorization. Are they using HTTP Basic, Digest, etc. If they are using XML, then you will need to get familiar with JAXB or a similar marshaller/un-marshaller to make life easy for you.

    2.It sounds like a very common task in that every RESTful server is doing.
    is there a good tutorial/guide for it?

    There are many tutorials for it. I personally like using the Spring Rest Template, however, you can use any framework you like. Here are some good tutorial links:-

    Spring Rest Template (uses Apache HTTP client behind the scene):

    • RestTemplate, the Spring way of accessing RESTful services
    • REST in Spring 3: RestTemplate

    Jersey:

    • Consuming RESTful Web Services With the Jersey Client API

    Apache HTTP Client:

    • REST Template Using Apache HttpClient
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm designing a new system, and I have need to store a pretty large
I'm pretty new to Prolog, and I need some help with a small problem:
I'm pretty new to scripting in general. I'm writing an expect script that ssh'es
I have a pretty basic REST call that is written using node / express
Im pretty new to Java Web Services, but I cant find a good explanation
I pretty new to Objective-C (and C itself) and need to consume a NSData
I'm still pretty new to ObjC. I noticed that it's pretty standard everywhere to
Im pretty new to REST but as far as i have gathered i understand
I'm pretty new to NLP in general, but getting really good at Perl, and
I'm a long-time web guy who's pretty new to iphone development. I'm finding many

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.