关于JDK6跟AXIS 1.4的Web Service应用冲突

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

你可能感兴趣的:(1.4,职场,axis,jdk6,休闲)