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 8012619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:22:45+00:00 2026-06-04T19:22:45+00:00

I am developing an server application that will receive lists of book details from

  • 0

I am developing an server application that will receive lists of book details from a number of different types of clients. The lists of book details is generated entirely on the client side.

An example list would be as follows:

/*
    +-----+----------------+--------------------+-------------+
    |Isbn | Author         | title              |notes        |
    +-----+----------------+--------------------+-------------+
    |02-1 | Stephen King   |Cojo                |blah blah    |
    +-----+----------------+--------------------+-------------+
    |05-3 | JK Rowlings    |Harry Potter        |rubbish      |    
    +-----+----------------+--------------------+-------------+
    |09-5 | Sun Tzu        |The Art of War.     |Interesting  |
    +-----+----------------+--------------------+-------------+
  */  
    public interface Book { }

    public interface ReadingListAPI {
        List<Book> save(Book... books);
    }

    public class ReadingListAPIImpl implements ReadingListAPI {
        @POST
        @Override
        List<Book> save(Book... books) {

        }
    }

Is it possible to expose the ‘ReadingListAPIImpl.save‘ method to the client via JAX-RS? What format would the client need to use for sending the data.

I’ve done some research on this and believe client could send the data in XML format and the server could use JAXB to unmarshal the data. However this seems quite complex and I’m not sure it would support recieving a list of User defined types.
Are there any other simpler methods like using JSON be for example?

  • 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-06-04T19:22:46+00:00Added an answer on June 4, 2026 at 7:22 pm

    Varargs is actually an array in disguise. So I presume it will be exposed as a collection of elements. If it doesn’t, you can replace it with List<Book> – you will be iterating it anyway.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing application that will read messages from IMAP server.. what would you recommend
I am developing an iPhone application that retrieves the data from remote MySQL server.
I'm developing an iPhone application that will access XML files (or something similar) from
I am developing a desktop application that will need to collect data (from the
I'm developing a flash application that is getting information from a remote server using
I'm developing an application that accepts connections from clients over the internet. All these
I am developing a custom server application that will access a database. I need
I'm developing a server-client application that uses 3 ports [TCP SOCKET .Net 4.0].. So
I'm developing an application that uses webservices in python, both sides (server and client)
I am developing an ASP.NET web application that sends a request to another server

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.