因此,我有一个向web服务发送请求的应用程序(执行搜索),我将得到以下异常:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsrr="http://wsrr_standard.[myCompany].com/2.0/"><env:Body><env:Fault><faultcode>200 OK</faultcode><faultstring>DataPower Error Message: document size limit of 4194304 bytes exceeded, aborting</faultstring><detail><errorCode>0x00030003</errorCode><errorNode>XICN0003:6807276</errorNode><errorOrigin>DataPower</errorOrigin><errorLevel>CRITICAL</errorLevel><ConsumerIDfromrequest/><ServiceSubscriberIDfromrequest/><RequestURI>/[MyService].svc</RequestURI><BackendOperation>{http://www.xmlns.[myCompany].com/interfaces/v1_0_2/}[MyMethod]</BackendOperation></detail></env:Fault></env:Body></env:Envelope>'. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.我正在进行一些关于错误DataPower错误消息的在线研究:超过4194304字节的文档大小限制,中止并遇到以下页面:尽管消息大小小于XML解析器限制集,但仍超出了XML解析器的限制。,根据该站点,一个可能的解决方案是“禁用附加于服务的XML上的XML限制”
我的问题如下:我可以从我的服务中更改web.config中的XML限制吗?或者还有什么其他可能的解决方案?
发布于 2013-03-12 22:22:11
没有其他解决办法。必须在DataPower中增加XML中的大小。
https://stackoverflow.com/questions/15302720
复制相似问题