客户端发现响应内容类型为“text/html”,但应该是“text/xml”。
学C#一直遇到问题,让我十分头疼,我现在有一点厌倦了,请大家给我些帮助
今天发现给用户开发的软件(FORM 调用 WEBSERVICES)报下面的错:
客户端发现响应内容类型为“text/html”,但应该是“text/xml”。
--
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN ">
<HTML> <HEAD>
<META HTTP-EQUIV= "Content-Type " CONTENT= "text/html; charset=EUC-JP ">
<TITLE> ???????????????????????????????????????????? </TITLE>
</HEAD>
<BODY bgColor=white FGCOLOR= "BLACK ">
<H2> <FONT style= "COLOR: white; BACKGROUND-COLOR: red " color=red> ! </FONT> ???????????????????????????????????????????? </H2>
<TABLE cellSpacing=0 cellPadding=0 width= "100% " bgColor=#918e2c border=0>
<TBODY> <TR> <TD> <TABLE height=4 cellSpacing=1 cellPadding=0 width= "100% " border=0>
<TBODY> <TR> <TD> </TD> </TR> </TBODY> </TABLE> </TD> </TR> </TBODY> </TABLE>
<P> <FONT SIZE= "4 "> ?????????????????????????????????????????????? </FONT> </P>
<P> <FONT SIZE= "4 "> 60 ?????????????????????????????????????????????????? </P> </FONT>
<TABLE BORDER= "0 " WIDTH= "750 " CELLSPACING= "0 " CELLPADDING= "0 " ALIGN= "LEFT ">
<TR>
<TD> <TABLE BORDER= "0 " WIDTH= "300 " CELLSPACING= "0 " CELLPADDING= "0 " ALIGN= "LEFT ">
<TR>
<TD> <NOBR> ??????????????????Web?????? </NOBR> </TD> </TR> </TABLE> </TD>
<TD WIDTH= "70% "> <A HREF= "http://200.0.10.251/api/syhnmstrmenteransuservice/syhnmstrmenteransuservice.asmx "> http://200.0.10.251/api/syhnmstrmenteransuservice/syhnmstrmenteransuservice.asmx </A> </TD> </TR>
</TABLE>
<BR>
<BR>
<TABLE cellSpacing=0 cellPadding=0 width= "100% " bgColor=#918e2c border=0>
<TBODY> <TR> <TD> <TABLE height=4 cellSpacing=1 cellPadding=0 border=0>
<TBODY> <TR> <TD> </TD> </TR> </TBODY> </TABLE> </TD> </TR> </TBODY> </TABLE>
<P> <SMALL> <I> <FONT SIZE= "2 "> (C)Copyright Fuji Xerox Co., Ltd. All rights reserved </I> </SMALL> </P>
</BODY>
</HTML>
--. 場所 System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
場所 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
場所 MitumoriDnpyNyryk.MitumoriDnpyNyrykService.MitumoriDnpyNyrykService.GetMakerMast(String IExcInfo)
場所 MitumoriDnpyNyryk.frmMitumoriDnpyNyryk.sprMitumori_CellDoubleClick(Object sender, CellClickEventArgs &n