AXIS是构建Web service非常流行的组件, 因为1.4是用JDK5构建的, 所以跟JDK6有兼容性问题, 比如在构建AXIS SOAP客户端时就会出现如下异常: 用JDK5运行就没有问题,或者升级成AXIS 2.0也是可以通过的.
2011-4-15 16:49:25 com.sun.xml.internal.messaging.saaj.soap.MessageImpl identifyContentType
严重
: SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP message
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:
java.security.PrivilegedActionException
: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:application/xml. Is this an error message instead of a SOAP response?
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(
HttpSOAPConnection.java:146
)
at com.webex.slimwma.SLiMHttpService.doPost(
SLiMHttpService.java:53
)
at com.webex.slimwma.SLiMHttpService.main(
SLiMHttpService.java:64
)
Caused by:
java.security.PrivilegedActionException
: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:application/xml. Is this an error message instead of a SOAP response?
at java.security.AccessController.doPrivileged(
Native Method
)
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(
HttpSOAPConnection.java:140
)
... 2 more
本文转自 dannyy1026 51CTO博客,原文链接:
http://blog.51cto.com/dannyyuan/550863