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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:25:35+00:00 2026-06-02T23:25:35+00:00

I am accessing a web service using a jaxws client. The service seems to

  • 0

I am accessing a web service using a jaxws client. The service seems to be returning responses with content-type as ‘text/plain’ instead of ‘text/xml’, this is causing the following exception in my client

com.sun.xml.internal.ws.server.UnsupportedMediaException: 
Unsupported Content-Type: text/plain Supported ones are: [text/xml]

I tried the following when creating a port

port.getRequestContext().put(MessageContext.HTTP_RESPONSE_HEADERS, 
Collections.singletonMap("Content-Type",
                Collections.singletonList("text/plain")));

but this isn’t having any effect.

  • 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-02T23:25:36+00:00Added an answer on June 2, 2026 at 11:25 pm

    As far as I know (by looking at the source code), I think JAX-WS RI 2.1 bundled with JDK 1.6 doesn’t support “text/plain” unless MTOM is enabled.

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

Sidebar

Related Questions

I'm using Java for accessing Alfresco content server via it's web service API for
I am getting this exception while accessing the jax-ws web service from my client.
I tried accessing web for xml parsing using the code below: System.Uri proxy =
I've tried using gSOAP for accessing a web service (e.g. using supplied WSDL to
Scenario: I am using Silverlight 3.0 as client for a web service. Design: The
We have created a web service using JAX-WS and ProSyst OSGi. Accessing the service
I am using a java-based tool that includes jaxws-rt-2.1.4.jar for accessing web services. I
I am accessing a web service using WCF. Using WSHttpBinding, Security mode is set
I am accessing a certain web service API which requires XML data in the
I have a asp.net website and I am accessing that web service from my

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.