Hi Grzegorz,
given that we cannot solve this problem completely, as the content
type of a servlet resource depdends on the input data (e.g. accept-
headers) that are posted, a HEAD request could be used to get a good
approximation.
Lars
Am 08.05.2007 um 18:29 schrieb Grzegorz Kossakowski:
I propose following solution:
Given that mime type (and other http header informations) are
calculated during setup phase of service's pipeline setup phase
it's guaranteed that this information can be properly determined
without providing any content (in service call, it's POSTed one).
Thus, it's enough to perform HTTP HEAD request that does not post
any data and does not expect any data returned by the service.
It means that serializer will need to perform two requests:
1. HTTP HEAD which is meant only to collect all data required to
set all http headers correctly (including Content-Type)
2. Actual HTTP POST that POSTs the data and gets transformed data
returned by the service
--
Lars Trieloff
visit http://www.mindquarry.com/