As like in .NET based webservices maxarraysize can be set in web.config file, is it possible to do the same in java??
If yes,then in which file I have to make the change?
As like in .NET based webservices maxarraysize can be set in web.config file, is it possible to do the same in java??
If yes,then in which file I have to make the change?
I want pass a document as byte array argument in one of my webmethods.What can be the max size of the byte array which webservice can handle by default.Where can I change this size of byte array?
In my experience with JAX-WS the size of the byte array to pass through web methods is limited by the heap size. So if you are getting OutOfMemoryErrors
you could try passing something like -Xmx512m
to your server and client. If your files are too large, you should consider using a DataHandler
and streaming attachments.