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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:23:36+00:00 2026-06-01T13:23:36+00:00

Is it true that the WebInvoke attribute can take GET as a method? I

  • 0

Is it true that the WebInvoke attribute can take GET as a method? I can’t see any notion of this in Microsoft documentation. I have seen it used in some forum examples though.

In principle, shouldn’t it be so, that when using webInvoke you are able to post,put, and delete. When using WebGet in contrast, you are only able to use the GET verb over HTTP, meaning that you cannot Post, Delete and Put. Now Get-operations should not modify data, they should according to to W3org be idempotent, and for that reason not be an an option in the WebInvoke attribute. Can someone point out the role or existence of the GET verb in WebInvoke attributes, and especially in the context of REST programming.

  • 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-01T13:23:37+00:00Added an answer on June 1, 2026 at 1:23 pm

    WebInvoke is general attribute for any HTTP verb including GET. If you use it with GET you must follow all GET’s limitations – operation parameters must be simple types mapped to URI path arguments.

    WebGet is just for GET verb and IMHO it exists mostly to show the difference between GET and other verbs (GET should be idempotent, GET doesn’t have body, etc.)

    The most significant method in .NET using these attributes is internal GetWebMethod:

    internal static string GetWebMethod(OperationDescription od)
    {
        WebGetAttribute wga = od.Behaviors.Find<WebGetAttribute>();
        WebInvokeAttribute wia = od.Behaviors.Find<WebInvokeAttribute>();
        EnsureOk(wga, wia, od);
        if (wga != null)
        {
            return "GET";
        }
        if (wia == null)
        {
            return "POST";
        }
        return (wia.Method ?? "POST");
    }
    

    As you can see GET method for WebInvoke is normally processed.

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

Sidebar

Related Questions

Is it true that any REST based API to upload videos will always require
Is this true that Update SQL Query is slow because of Clustered index??????
Isn't it true that every assert statement can be translated to an Assert.IsTrue, since
Is it true that Map/Reduce results can be stored permanently, but not sorted? For
is it true that if we make any site in any cms, it may
I have a WCF service, this is a method which I'd to call: [OperationContract]
Is it true that the smallest amount of memory that I can allocate in
Is it true that better concurrency can be achieved in Oracle databases than in
Can it really be true that the attr(href) command for a link is handled
Is that true that WP_Query by default returns 10 posts? I have more than

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.