0
我已經從asp.net應用程序中調用了一個web服務(即用Java編寫)的工作。 Web服務URL http://clyde.tmpws01.net:8080/transflow_dstv_rtpp/services/TransflowRTPPService?wsdl從Asp.net調用java Web服務時面臨錯誤
我在上面URL項目添加Web引用,並寫了下面的代碼來調用使用的Web服務
Transflow.TransflowRTPPService service = new Transflow.TransflowRTPPService();
Transflow.SubmitTransactionResponse response = new Transflow.SubmitTransactionResponse();
response = service.submitTransaction(false, true, 1002, true, "12345678", "XYZ", 15200.32, true, "INR", "cash", "C", "12", "0000", "1234567890", "Nitesh", 2, true, "Hello");
當我運行這段代碼即時得到以下錯誤
Client found response content type of 'text/html', but expected 'text/xml'.
The request failed with the error message:
--
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<TITLE>The requested URL could not be retrieved</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
<meta http-equiv="REFRESH" content="0;url=http://ultra_error"></HEAD>
<BODY>
</BODY>
什麼可能導致此問題?
此Web服務是否適用於其他(不是.Net)Web服務客戶端? – Justin