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

  • Home
  • SEARCH
  • 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 6797731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:38:41+00:00 2026-05-26T18:38:41+00:00

My WCF REST service method: [WebInvoke(Method = POST, ResponseFormat = WebMessageFormat.Xml)] Metadata[] Extract(Stream stream);

  • 0

My WCF REST service method:

[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Xml)]
Metadata[] Extract(Stream stream);

Is failing, and returing an error to the client indicating that the content type is incorrect.
The error message from WCF is “The remote server returned an error: (415) Missing Content Type.”.

How do I accept a stream with any content type, and not have to set the content-type in the client. If I set the content type to application/octet-stream it works. I would ideally like the WCF method to accept the stream regardless of the content type.

Thanks.

  • 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-26T18:38:42+00:00Added an answer on May 26, 2026 at 6:38 pm

    According to this post – you need to use the WCF Web API to get low-level access to the request or use a request parameter that supports streaming (MTOM).

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

Sidebar

Related Questions

I have a REST POST method as follows: [WebInvoke(BodyStyle = WebMessageBodyStyle.WrappedRequest, ResponseFormat = WebMessageFormat.Xml,
There is a self hosted WCF REST service, need to send an xml post
I have a REST service consumed by a .Net WCF client. When an error
I am trying to post data to WCF REST service and I keep getting
I'm using WCF to create some REST service. One of the Rest Service method
Is there a way in a WCF Rest Service implementation to require one method
My current WCF REST Method is defined as: [OperationContract] [WebGet(UriTemplate = {username}/{password}, ResponseFormat =
Here is one of the methods from my wcf rest service: [OperationContract] [WebInvoke(UriTemplate =
When should use post vs get? in a REST service on WCF?, below is
I am using WCF REST service (GET method) to retrieve my EF4 POCOs. The

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.