客戶端發(fā)現(xiàn)響應內容類型為“text/html;charset=UTF-8”,但應為“text/xml”。請求失敗,錯誤信息為:--<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><LINK type="text/css" rel="stylesheet" href="/diws/?stylesheet=1"><meta http-equiv=content-type content="text/html; charset=UTF-8"><title>CXF - Service list</title></head><body><span class="heading">Available SOAP services:</span><br/><table cellpadding="1" cellspacing="1" border="1" width="100%"><tr><td><span class="porttypename">ContactPushService</span><ul><li>push</li><li>hi</li><li>postxml</li></ul></td><td><span class="field">Endpoint address:</span> <span class="value">http://u1.huiyee.com:8080/diws/ups</span><br/><span class="field">WSDL :</span> <a >{http://contact.di.webservice.huiyee.com/}ContactPushServiceImplService</a><br/><span class="field">Target namespace:</span> <span class="value">http://contact.di.webservice.huiyee.com/</span></td></tr></table><br/><br/></body></html>--.
?
?
?
如何解決?。。。。。。。。。。。。。。。。。。。。。。。。?!
在做webservice的時候出現(xiàn)錯誤:客戶端發(fā)現(xiàn)響應內容類型為“text/html;charset=UTF-8”,但應為“text/xml
寶慕林4294392
2018-12-07 10:19:23