Hi

In JAX-RS, MessageBodyWriters have a method called getSize(), many writers 
return -1 (unknown sizes), but in some cases
(for ex for String or byte[]) a valid size value is returned (CXF JAX-RS 
runtime doen't pay attention though to this method but it should).

So perhaps, a similar getSize() method can be introduced in a JAX-WS runtime, 
on the appropriate class which encapsulates request/response ?

Cheers, Sergey

----- Original Message ----- 
From: "Orban, Gyorgy (IT)" <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: "McClelland, Chris (IT)" <[EMAIL PROTECTED]>; "Kralj-Taylor, Mark (IT)" 
<[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2008 3:53 PM
Subject: content length for http requests


Hi,
I wonder if there is a standard way in cxf for setting the http content length 
for the request if the message size is known in advance. We are trying to send 
fix length messages using a custom client and interceptor chain. Could you 
please advise on this?

Cheers,
Gyorgy
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Reply via email to