Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.3.3
-
XP 2002 SP-3, JDK 1.6.0.17, cxf-2.3.3,
-
Advanced
Description
Hello,
We have implemented the following method while the output of the Response should be a multipart message.
@POST
@Path("
/messages/payloads")
@Consumes("application/xml")
@Produces(
)
public Response postMailboxMessagesPayloadRequest(@Context HttpServletRequest request,
@PathParam("destinationAddress") String destinationAddress,
@Context ServletContext servletContext,
JAXBElement<MailboxMessagesPayload> jAXBElement) {
try
catch(Exception e){
}
The thing is that no matter what we do, we can not have the 'boundary' which is determined by the CXF engine to appear in the Content-Type on the main header.
As a result no Client will be able to parse the returned message.
If we try to manually set the Content-Type header while giving it our own 'boundary', the result is that a different boundary is generated for the actual message, while the boundary we set is not the same.