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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:30:00+00:00 2026-05-26T19:30:00+00:00

I am working on a project where a 3rd party has a .NET environment

  • 0

I am working on a project where a 3rd party has a .NET environment running that is providing REST style services that send and receive XML over HTTP. My side of the project is actually in Java on a separate machine entirely.

I have built the whole Java part of the system assuming that POSTing or PUTing XML docs with a Content Type header equal to “application/xml” would be fine (seeing as it is part of the XML spec and associated RFC!).

Anyway, now the .NET team is saying that it must be text/plain instead otherwise their server will reject the request and they don’t seem to be able to or know how to change it.

So, what are the implications of sending XML over HTTP using plain/text as the Content Type? Are there any subtle “gotchas”, or is it no big deal?

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-26T19:30:00+00:00Added an answer on May 26, 2026 at 7:30 pm

    Unless the charset parameter is specified, the charset for text/plain is us-ascii. The charset defined in the mime type takes priority over the charset defined in the xml document, so if the xml document is not us-ascii, a correct client would parse the xml incorrectly.

    4.1.2 of RFC 2046 states that for text/plain,

    The default character set, which must be assumed in the absence of
    a charset parameter, is US-ASCII.

    Even using text/xml, the default charset is us-ascii, from section 3.1 of RFC 3023,

    Conformant with [RFC2046], if a text/xml entity is received with the
    charset parameter omitted, MIME processors and XML processors MUST use
    the default charset value of "us-ascii"

    If you use text/plain with the correct charset specified, the charset is now being specified twice, so it is better to use application/xml which does not have a default charset associated with it, and let the charset be declared by the xml document.

    There is an interesting post on this here.

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

Sidebar

Related Questions

We are working on a web service that has to run a 3rd party
I am working on a project that includes other 3rd party libraries. All of
I have a project that uses a few 3rd party DLLs, and am working
I am working on a project that links to a 3rd party static library
The project I'm working on uses a 3rd party component called ABCpdf to generate
In the software project I'm working on, we use certain 3rd party libraries which,
We have a VXML project that a 3rd party parses to provide us with
I'm working on a project that requires a dashboard be overlayed ontop of 3rd
A project I'm working on fetches data from a 3rd party service and caches
I am working a project that does not have a trunk / branches /

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.