2011-05-12 88 views
0

我得到這個錯誤是java.io.IOException:服務器返回HTTP響應代碼:500爲URL:異常時調用我有網站服務的網址。錯誤是java.io.IOException:服務器返回的HTTP響應代碼:500爲URL:在調用weservice時

我打電話Java構建通過一個框架,基於.NET Web服務並獲得:

Content-Length:736 
Content-Type:text/xml; charset=utf-8 
Server:Microsoft-IIS/7.0 
X-Powered-By:ASP.NET 
Date:Thu, 12 May 2011 08:51:45 GMT 

java.io.IOException: Server returned HTTP response code: 500 for URL: "http://hcd 
cd-bt01.hcch.com/HCCExceptionLogService/service.svc?wsdl" 
     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon 
nection.java:1170) 
     at com.splwg.mpl.senders.http.HTTPSender.sendResponse(HTTPSender.java:34 
5) 
     at com.splwg.mpl.sending.NewSenderManager.sendResponse(NewSenderManager. 
java:191) 
     at com.splwg.mpl.sending.SameThreadSendingManager.callSender(SameThreadS 
endingManager.java:63) 
     at com.splwg.mpl.stagingtable.download.OutboundMessageSender.handleRouti 
ngs(OutboundMessageSender.java:361) 
     at com.splwg.mpl.stagingtable.download.OutboundMessageSender.sendRespons 
e(OutboundMessageSender.java:95) 
     at com.splwg.mpl.sending.NewSenderManager.sendResponse(NewSenderManager. 
java:191) 
     at com.splwg.mpl.sending.SameThreadSendingManager.processDestination(Sam 
eThreadSendingManager.java:293) 
     at com.splwg.mpl.sending.SameThreadSendingManager.sendResponse(SameThrea 
dSendingManager.java:252) 
     at com.splwg.mpl.sending.SameThreadSendingManager.doSend(SameThreadSendi 
ngManager.java:208) 
     at com.splwg.mpl.server.async.ExecSendRequestProcessor.ProcessRequest(Ex 
ecSendRequestProcessor.java:61) 
     at com.splwg.mpl.server.async.RequestProcessingThreadAdapter.run(Request 
ProcessingThreadAdapter.java:46) 
     at com.splwg.mpl.server.PooledThread.run(PooledThread.java:91) 
     at java.lang.Thread.run(Thread.java:595) 

對此我調用WSDL URL是http://hcdcdbt01.hcch.com/HCCExceptionLogService/service.svc?wsdl

頭從服務器返回

我已經使用SOAP UI 3.6.1工具來測試這個wsdl,它給了我正確的結果。我已經使用

標題有:

Content-Type: text/xml;charset=UTF-8 
SOAPAction: "http://tempuri.org/IExceptionLogService/LogException" 
POST 
Host:hcdcd-bt01.hcch.com 
http://hcdcd-bt01.hcch.com/HCCExceptionLogService/service.svc 

SOAP UI頭:

POST http://hcdcd-bt01.hcch.com/HCCExceptionLogService/service.svc HTTP/1.1 
Accept-Encoding: gzip,deflate 
Content-Type: text/xml;charset=UTF-8 
SOAPAction: "http://tempuri.org/IExceptionLogService/LogException" 
User-Agent: Jakarta Commons-HttpClient/3.1 
Host: hcdcd-bt01.hcch.com 
Content-Length: 763 

任何機構可以告訴我哪裏出了問題?

回答

0

這是一個服務器錯誤響應,可能在內部服務上,因爲給定的地址不駐留在互聯網AFAIK上。 您必須獲取服務器日誌才能確定您的請求不喜歡的內容。

0

由於服務器發送響應代碼500 - 內部服務器錯誤 - 我認爲你必須在服務器端調試它,而不是客戶端。

您應該檢查服務器日誌的輸出。

相關問題