2013-03-08 35 views
0

所以我必須發送到Web服務(執行搜索)的請求的應用程序,並且我得到以下異常:XML解析器限制

<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 parser limits exceeded even though the message size is smaller than the XML parser limit set,根據網站,一種可能的解決方案是「禁用探針或增加附加到服務的XML管理器上的XML解析器限制「

我的問題如下ws,我可以從我的服務中更改web.config中的XML Parser限制嗎?或者還有其他可能的解決方案嗎?

+0

此故障來自服務器。這是確定已超過文檔大小限制的服務器。 – 2013-03-09 01:06:17

+0

此外,爲什麼限制將特定於ASP.NET? – 2013-03-09 01:12:00

+0

所以沒有別的辦法,只能去XML管理器並更改那裏的設置?...好吧,這是一個.NET應用程序 – esausilva 2013-03-11 13:05:46

回答

0

沒有其他解決方案。必須增加DataPower中XML管理器的大小。