C# 从Asp.net调用java Web服务时遇到错误

C# 从Asp.net调用java Web服务时遇到错误,c#,asp.net,web-services,C#,Asp.net,Web Services,我给出了一个从asp.net应用程序调用web服务(即用Java编写)的工作。 web服务URL 我在我的项目中为上述URL添加了Web引用,并编写了以下代码来调用Web服务 Transflow.TransflowRTPPService service = new Transflow.TransflowRTPPService(); Transflow.SubmitTransactionResponse response = new Transflow.SubmitTransaction

我给出了一个从asp.net应用程序调用web服务(即用Java编写)的工作。 web服务URL

我在我的项目中为上述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>
客户端发现响应内容类型为“text/html”,但应为“text/xml”。
请求失败,出现错误消息:
--
无法检索请求的URL

什么可能导致此问题?

您很可能会遇到此错误,因为web服务正在签名错误并将您发送到某种形式的html错误页。这意味着您的客户机得到的是html响应,而不是xml响应。尝试使用fiddler(google fiddler 2),您应该能够看到您的帖子和得到的回复。

此web服务是否适用于其他(而不是.Net)web服务客户端?