Hi,

 

One of the return classes of my service contains a large byte[]. I would like to have the byte[] sent as an attachment. Following some examples I have implemented this by hand and sent the byte[] as an attachment and just set the byte[] to null before the response is sent. The client then manually grabs the attachment.

 

Preferably I would like this done automatically. I think I can achieve this is by:

 

1)       Have my service return a new wrapper class that converts the byte[] property to a DataHandler

2)       Convert the classes <beanMapping> to a compete <typeMapping> defining the DataHandler property

 

Unfortunately I am having great difficulty finding any resources outlining this type of <typeMapping> and use of a DataHandler.

 

Is this is even possible?

 

Any help is greatly appreciated

 

Greg Hess

Software Engineer

Wrapped Apps Corporation

275 Michael Cowpland Dr.

Suite 201

Ottawa, Ontario

K2M 2G2

Tel: (613) 591 -7552

Fax: (613) 591-0523

1 (877) 388-6742

www.wrappedapps.com

 

<<image001.gif>>

Reply via email to