• Post Reply Bookmark Topic Watch Topic
  • New Topic

"Unsupported Content-Type: text/html;charset=utf-8 Supported ones are: [text/xml]"

 
Godwin Egbugo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I developed a standalone client in NetBeans 6.5 to consume a WISG web services. But whenever i try to invoke a service, this exception is thrown: Exception in thread "main" com.sun.xml.internal.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html; charset=utf-8 Supported ones are: [text/xml] . the WISG web services was deployed in tomcat server. Can anyone be of help please. It is urgent. Thanks.
.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
The web service request seem to result in a webpage (HTML) being returned by the server, instead of a web service reply.
Use soapUI to send a reques to the web service and view the response or use a packet sniffer, like WireShark, to look at the request to and the response from the web service.
Best wishes!
 
Godwin Egbugo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Unsupported Content-Type: text/html;charset=utf-8 Supported ones are: [text/xml]"

Hi,
I have found out that both my client request to the server and server response soap content type is text/html. Please how can i solve the problem.

thanks in advance.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!