關於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
相關文章
相關標籤/搜索