Skip to main content

Invalid Content-Type. Unable to internalize message

1 reply [Last post]
k_lite
Offline
Joined: 2005-08-17

i'm getting the following error when tried to run my application. i had follow the instruction under Prerequisites at https://jax-rpc.dev.java.net/jaxws20-ea2/samples/docs/index.html. the difference is that i'm using Tomcat 5.0.30, so i copied all the jar files from JAXWS_HOME/lib to TOMCAT_HOME/shared/lib & updated the classpath.

run:
[java] Invoking sayHello
[java] Aug 23, 2005 3:13:47 PM com.sun.xml.messaging.saaj.soap.MessageImpl
identifyContentType
[java] SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message in
stead of a SOAP message
[java] Aug 23, 2005 3:13:47 PM com.sun.xml.messaging.saaj.soap.MessageImpl

[java] SEVERE: SAAJ0535: Unable to internalize message
[java] Couldn't create SOAP message due to exception: com.sun.xml.messaging
.saaj.SOAPExceptionImpl: Unable to internalize message
[java] at com.sun.xml.ws.util.SOAPUtil.createMessage(SOAPUtil.java:141)

[java] at com.sun.xml.ws.util.SOAPConnectionUtil.getSOAPMessage(SOAPCon
nectionUtil.java:54)
[java] at com.sun.xml.ws.encoding.soap.client.SOAPXMLDecoder.toSOAPMess
age(SOAPXMLDecoder.java:92)
[java] at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.rec
eive(SOAPMessageDispatcher.java:326)
[java] at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doS
end(SOAPMessageDispatcher.java:186)
[java] at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.sen
d(SOAPMessageDispatcher.java:107)
[java] at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(Deleg
ateBase.java:65)
[java] at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSE
IMethod(EndpointIFInvocationHandler.java:147)
[java] at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(Endp
ointIFInvocationHandler.java:82)
[java] at $Proxy15.sayHello(Unknown Source)
[java] at hello.client.SayHelloClient.main(Unknown Source)

any help is much appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kohlert
Offline
Joined: 2003-06-16

Where you able to hit the endpoint address in a web browser and see a description of the web service?