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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:14:28+00:00 2026-06-02T08:14:28+00:00

I have a WCF REST service that I customized from the VS2010 online template.

  • 0

I have a WCF REST service that I customized from the VS2010 online template. I specifically customized the POST method to a minimal amount of XML. Everything works exactly like I want when running on localhost. When I deploy it to the server, however, Fiddler gives me the 400. Running the GET request through Fiddler works fine; the only thing that doesn’t work is POST.

Here is the xml of the request, which I ripped right out of the WCF service help page:

<UserData xmlns="http://schemas.datacontract.org/2004/07/SRAccountService.SRObjects">
  <key>12345</key>
  <favorite>chocolate</favorite>
</UserData>

I am setting the Content-Type:text/xml on the HTTP header. I also know that there are about 1000 stackoverflow questions regarding WCF, POST and 400 status codes, but I think I read through most of them and none (that I’ve see) do what I need.

Does anybody have any thoughts? I would be most grateful!

EDIT: I am working under a deadline, so I reconfigured the service to take the parameters as part of the URL and return the data through a GET request. The same thing is happening–working fine on localhost, 400 on the server. This is crazy!

  • 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-02T08:14:29+00:00Added an answer on June 2, 2026 at 8:14 am

    The problem was that I am using ado.net entity model to connect to a backend database…the connection string was using integrated security (as opposed to SQL Server logins), so when I started running it on the server, the integrated part broke.

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

Sidebar

Related Questions

I have a WCF Rest service: [WebHelp(Comment = Sample description for GetData)] [WebInvoke(Method=POST, UriTemplate
I have a REST WCF service that has a method that gets a parameter
I have a WCF rest service. It has a method that returns a list
I have an asp.net 4 application that hosts a WCF REST service via WebServiceHost...
I have a C# REST Service in WCF that sits on top of an
So I have wcf rest service which succesfuly runs from a console app, if
I have developed a sample WCF REST service that accepts that creates an Order
I have a self hosted WCF Rest service that I am using to simulate
I have a REST WCF service that is being hosted in IIS. I have
I have a WCF REST web service that is hosted via a service route

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.