In the afternoon, I asked Wang Yonggang to write "wscaller: General Web service client and test tool" for a test, which also encountered the same problem. It does not appear that the problem lies in the processing of web service calls. Starting with saxparseexception, the solution is found temporarily.
Originally due to Java's extended entity restrictions, the default value is 64 KB. You need to manually modify JVM parameters.
1. In eclipse, right-click the project and choose "Run... ";
2. Select" arguments "in the configuration window, and enter" -dentityexpansionlimit = 100000 ", return the result after successful running.
3. Although the problem is solved temporarily, when the returned data volume is increased, Program reports a memory overflow error. However, when a. Net client is used to access the Web service, larger data can be returned normally. In this regard, Java is indeed not as convenient as. net. If anyone knows the reason, please give me some advice.