wood burning stoves 2.0*
The moose likes Web Services and the fly likes problem to send file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "problem to send file" Watch "problem to send file" New topic

problem to send file

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 246

i created a web service and a client application for it

web service receive a file

web service method parameter is an object who have a string and a file (DataHandler)
string ainsi qu'un fichier (DataHandler)

that work fine for a little file like 1 meg..... bug around 3, 4 meg.... that crash

tomcat return

web Cliet application return

in the config tomcat setting i have
set CATALINA_OPTS="-Xms1024m -Xmx1024m"

object web service receive: XmlDepot

Deposer class

web client application

i use metro 2.0 and tomcat 7 (get same result with tomcat 6)

why that don't work with bigger file ( over 3 meg...) ?

I agree. Here's the link: http://aspose.com/file-tools
subject: problem to send file
Similar Threads
java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP
web service - send java List
com.sun.xml.ws.client.ClientTransportException JAX-WS
com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code -1: null
Cant convert from accessType to XmlAccessType + JAXWS