OMGCockroach 2016-11-03 03:05 采纳率: 0%
浏览 5702

客户端发现响应内容类型为“”,但应为“text/xml”。

用户代码未处理 System.InvalidOperationException
Message=客户端发现响应内容类型为“”,但应为“text/xml”。

请求失败,错误信息为:

<?xml version="1.0" encoding="UTF-8"?>

wsdl:types

















/wsdl:types

  <wsdl:part element="impl:doServerResponse" name="parameters">

  </wsdl:part>

/wsdl:message

  <wsdl:part element="impl:doServer" name="parameters">

  </wsdl:part>

/wsdl:message

  <wsdl:operation name="doServer">

     <wsdl:input message="impl:doServerRequest" name="doServerRequest">

   </wsdl:input>

     <wsdl:output message="impl:doServerResponse" name="doServerResponse">

   </wsdl:output>

  </wsdl:operation>

/wsdl:portType

  <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

  <wsdl:operation name="doServer">

     <wsdlsoap:operation soapAction=""/>

     <wsdl:input name="doServerRequest">

        <wsdlsoap:body use="literal"/>

     </wsdl:input>

     <wsdl:output name="doServerResponse">

        <wsdlsoap:body use="literal"/>

     </wsdl:output>

  </wsdl:operation>

/wsdl:binding

  <wsdl:port binding="impl:ManageSoapBinding" name="Manage">

     <wsdlsoap:address location="http://localhost:8080/ZRHTWebService/services/Manage"/>

  </wsdl:port>

/wsdl:service

/wsdl:definitions

--.
Source=System.Web.Services
StackTrace:
在 System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
在 Nimip.Interface.HZMZYYService.ManageService.doServer(String type, String msg) 位置 d:\项目管理\杭州明州\程序\CX03.临床营养\Nimip.Interface\Web References\HZMZYYService\Reference.cs:行号 79
在 Nimip.Interface.HZMZYY.EMRForView.GetInHos(String patientId, String visitId, String inpNO) 位置 d:\项目管理\杭州明州\程序\CX03.临床营养\Nimip.Interface\HZMZYY\EMRForView.cs:行号 74
在 Nimip.Interface.EMRHelper.GetInHos(String patientId, String visitId, String inpNO) 位置 d:\项目管理\杭州明州\程序\CX03.临床营养\Nimip.Interface\EMRHelper.cs:行号 35
在 PublicMethod.PageBase.InitNEMR(String patientId, String visitId, String inpNO, Boolean mustUpdate)
在 ClinicalNutri.NutriEMRManage.NEMRMainV4.LoadPatsInfo()
InnerException:

  • 写回答

1条回答 默认 最新

  • threenewbee 2016-11-03 14:41
    关注

    服务器上设置下content-type为text/xml

    评论

报告相同问题?

悬赏问题

  • ¥15 matlab有关常微分方程的问题求解决
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable