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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:40:02+00:00 2026-05-18T04:40:02+00:00

What needs to happen to allow an HTTP POST to a WCF service? I

  • 0

What needs to happen to allow an HTTP POST to a WCF service?

I would like to allow people to not only use SOAP with this service, but they must also be able to HTTP POST to this service and ideally receive an XML response.

I cannot find an easy way to allow a WCF service to accept an HTTP POST.

I am past the HTTP 415 error and need some help with maybe a web.config change regarding endpoints, or an additional attribute above the method (WebInvoke).

Thank you!

  • 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-18T04:40:03+00:00Added an answer on May 18, 2026 at 4:40 am

    In order to talk to a WCF service over the standard HTTP verbs, you need to use the WCF REST components.

    In .NET 3.5 SP1, there’s the WCF REST Starter Kit that you’ll need (it’s not part of the basic package).

    When you have this, you can define an endpoint in your WCF service with a webHttpBinding and that basically should allow you to define GET, POST, PUT and DELETE operations.

    Check out the WCF REST developer center for a great deal of white papers, tutorials, walk throughs and screencasts showing you exactly how to do all of this.

    In a nutshell, you would adorn your service method(s) that you want to expose over HTTP REST with WebGet or WebInvoke attributes and a URL template – something like:

    [ServiceContract]
    public partial class YourService
    {
        [WebInvoke(Method = "POST", UriTemplate = "yourservice/{id}/save")]
        [OperationContract]
        SomeReturnType YourMethodCall(string someParam);
        ...
    }
    

    and then, in your web.config (for hosting in IIS) or in app.config you need an endpoint with the right binding:

    <endpoint name="webEndpoint"
              address="...."
              binding="webHttpBinding"
              contract="IYourServiceContract" />
    

    You might also need a few extra things in your config – the WCF REST dev center should go into all the details in great depth.

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

Sidebar

Related Questions

I needs some tips on this one, since I couldn't find anything on this,
If you look under #3 in this link http://www.yiiframework.com/doc/guide/1.1/en/basics.controller it gives you a way
So I am working on setting up a WCF service, hosted in iis7. The
I would like to encrypt a file as it gets uploaded, generally what happens
My app needs to do many datastore operations on each request. I'd like to
I've set up my Silverlight WP7 app to use a WebBrowser Control to allow
Using doctrine 2.1 (and zend framework 1.11, not that it matters for this matter),
So I need to track changes that happen on a Mysql table. I was
In my application I need to make something happen when an EditText loses its
I need to catch segmentation fault in third party library cleanup operations. This happens

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.