したがって、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 Error Message: document size limit of 4194304 bytes exceeded, abortingというエラーに関するオンライン調査を行っていたところ、次のページに遭遇しました:メッセージ サイズが XML パーサー制限セットより小さいにもかかわらず、XML パーサー制限を超えました。考えられる解決策の 1 つは、「プローブを無効にするか、サービスに接続されている XML マネージャーで XML パーサーの制限を増やす」ことです。
私の質問は次のとおりです。自分のサービスから web.config の XML パーサーの制限を変更できますか? または、他にどのような解決策がありますか?