RE: wsdl2java

2008-03-14 Thread Chandolu, Yuva
Using Service and Call you are making your code portable between any JAX RPC based implementation of Web Services. That means, if you switch away from Axis to some other JAX RPC implementation of Web Services, your client code works (should work) without any code changes. Using Stubs your clien

RE: Question regarding attachments with Axis and DataHandler

2008-03-13 Thread Chandolu, Yuva
e, by using a servlet filter or maybe an Axis handler. This solution would be conceptually similar to Spring/Hibernate's OpenSessionInViewFilter, but is more complicated to implement. Regards, Andreas On 12 Mar 2008, at 18:56, Chandolu, Yuva wrote: > Is there a work aroun

RE: Question regarding attachments with Axis and DataHandler

2008-03-12 Thread Chandolu, Yuva
I get the error java.io.IOException: End of stream encountered before final boundary marker on the client side if I use DataHandler (InputStream, String) on the service side. From: Chandolu, Yuva Sent: Wednesday, March 12, 2008 2:04 PM To: axis-user

RE: Question regarding attachments with Axis and DataHandler

2008-03-12 Thread Chandolu, Yuva
: Question regarding attachments with Axis and DataHandler You could create DataHandler directly from InputStream using DataHandler (InputStream, String) constructor. -Original Message- From: Chandolu, Yuva [mailto:[EMAIL PROTECTED] Sent: 12 March 2008 17:56 To: axis-user

RE: Question regarding attachments with Axis and DataHandler

2008-03-12 Thread Chandolu, Yuva
o a ByteArrayOutputStream and then copy it to a byte array. It is therefore not surprising that you run out of memory. Andreas On 11 Mar 2008, at 21:42, Chandolu, Yuva wrote: > Hi, > > I am trying to replace one servlet serving huge files by a > webservice. When request comes in, th

RE: Question regarding attachments with Axis and DataHandler

2008-03-12 Thread Chandolu, Yuva
ore not surprising that you run out of memory. Andreas On 11 Mar 2008, at 21:42, Chandolu, Yuva wrote: > Hi, > > I am trying to replace one servlet serving huge files by a > webservice. When request comes in, the servlet opens InputStream to > the file blob in database, r

Question regarding attachments with Axis and DataHandler

2008-03-11 Thread Chandolu, Yuva
Hi, I am trying to replace one servlet serving huge files by a webservice. When request comes in, the servlet opens InputStream to the file blob in database, read from the input stream and write to the http output stream. When client starts pulling the data it comes straight from the input stream

How to set SimpleSessionHandler session timeout in Axis 1.4

2008-01-10 Thread Chandolu, Yuva
Hi, I have a web service that uses SimpleSessionHandler to maintain sessions. I had the following lines in my service description in server-config.wsdd. I also created the client-wsdd like following lines in it.