{
response.setContentType(requestContentType);
int iContentLength = getContentLength(invocationResponse);
response.setContentLength(iContentLength);
ServletOutputStream outputStream = response.getOutputStream();
Marshaller marshaller = MarshalFactory.getMarshaller(HTTPMarshaller.DATATYPE, getSerializationType());
if (marshaller instanceof VersionedMarshaller)
((VersionedMarshaller) marshaller).write(invocationResponse, outputStream, Version.getDefaultVersion());
else
marshaller.write(invocationResponse, outputStream);
outputStream.close();
}
}
catch(ClassNotFoundException e)