When i tried to upload file with 2.5 MB then my code is working fine and if I tried to upload more than 3MB then it gives
I have not set any configuration for file size in my code
ERROR - javax.xml.ws.soap.SOAPFaultException: There was an exception running the extensions specified in the config file. ---> Maximum request length exceeded.
For eg, in Tomcat, in server.xml you can control this via maxPostSize attribute in Connector element (in the eg. below i have limited max post size to 4 MB).
Rakesh Jhamb wrote:
For testing purpose I have tried it from plain java class without placing it on any server.
now also it is giving same error to me.
The change has to be done at server end, not at client end, please read my previous mail again. Surely webservice is hosted on some Application Server - you need to change it there.
ERROR - javax.xml.ws.soap.SOAPFaultException: There was an exception running the extensions specified in the config file. ---> Maximum request length exceeded
Where is the source of this exception? i.e is it being returned by Web-Service (from .net server) OR, is it being thrown from within your own java code (in which case you can trace the source of it). What java client are you using to invoke the web-service something like Apache Axis2 ?
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
Rocket Oven Kickstarter - from the trailbosshttps://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss