File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Invalid Content-Type with Web Service!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Invalid Content-Type with Web Service!!" Watch "Invalid Content-Type with Web Service!!" New topic
Author

Invalid Content-Type with Web Service!!

hani Ibrahim
Ranch Hand

Joined: Sep 06, 2006
Posts: 182
Hi all,

i deploy a simple web service and test it in Sun it is work correctly..
but in webSphere when i called it from client it gives me that Exception:
---------------------------------------------------------------------------
SEVERE: SAAJ0537: SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP message
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
. Could be an error message instead of a SOAP message
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
---------------------------------------------------------------------------

any one has any idea about it?
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

can you explain how you deployed in websphere?


Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
hani Ibrahim
Ranch Hand

Joined: Sep 06, 2006
Posts: 182
Just walk step by step with Websphere wizard and check the option:
deploy web services.
if you know how to deploy web services correctly or how to deal with it please tell me to solve the problem.
 
GeeCON Prague 2014
 
subject: Invalid Content-Type with Web Service!!