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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:35:50+00:00 2026-06-16T22:35:50+00:00

I had some good results with implementing Rest Web Services with ServiceStack Framework, but

  • 0

I had some good results with implementing Rest Web Services with ServiceStack Framework, but I noticed somethings in samples I would like some more information.

  1. I have currently created a Service based on IService interface. What is the differences with using IRestServiceBase? When should I use either one or the other (my web service has routes so it’s REST already right)?

  2. What is the difference between these 2 syntaxes?

    MyEvent : RestServiceBase <Event>
    public override object OnGet(...)
    

    and

    MyEvent : IService
    public object Get(...)
    

    The one I use with my IService is the second version, is version one being more ‘REST’ than the other? I tested both and did same results.

  3. I have not used attributes [DataMember] or [DataContract] the way it’s done on WCF, in which situation do I have to use this? (to speak the truth I can really pass on adding this useless information).

  4. In Movie sample, what are Interfaces : IRestGetService? What is their purpose when my class already has IService?

  • 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-16T22:35:51+00:00Added an answer on June 16, 2026 at 10:35 pm

    The newer style api uses the Service base class. Your service will act just like it did when using RestServiceBase but the new api has a bunch of added benefits which are described in the documentation.

    Use the [DataMember] and [DataContract] attributes when supporting SOAP endpoints.

    IRestGetService is marked obsolete and you should move to the new style api. In the new api, interfaces such as IGet and IPost can be used to enforce the correct method signatures but are not required.

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

Sidebar

Related Questions

We're starting to standardise on a Ruby-based testing framework, having had some very good
what are some good tag Cloud logic that you had come up with? like
I had some experience of android but know almost nothing of GCC Makefile. Here
We are evaluating using GIN in out GWT project and have had good results
I had some code that constructed an object: function gridObjConst(id, itemName, itemPrice, itemListPrice, width,
we had some demands here in my job that include working with asp. We
I had some issues with XPTemplate vim plugin. Sometimes it yields with errors, and
I had some problems with my subversion server and i had to restore it
I had some code that ran commands through Runtime.getRuntime.exec(String) , and it worked on
I had some questions regarding the structure and behavior of a model, using UML,

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.