Hi Gina, Before CXF 2.6.0, message contents field will be initialized only if non-standard format is used (something different from XMLStreamReader.class, XMLStreamWriter.class, InputStream.class, OutputStream.class, List.class, Exception.class, Node.class, DelegatingInputStream.class). Otherwise message content is stored into defaultContents field. Since CXF 2.6.0, MessageImpl has only contents field (no defaultContents anymore) that stores content format as well as content itself.
To your question: You can examine which formats are available using message. getContentFormats() and obtain message content using: message.getContent(Class<?>). If JAXB data binding is used, message normally contains following formats after UNMARSHAL phase for incoming chain: 1) javax.xml.stream.XMLStreamReader (message content as XML reader) 2) java.util.List (message content as JAXB objects) 3) java.io.InputStream (message content as InputStream) 4) org.w3c.dom.Node (message content as DOM) Regards, Andrei. -----Original Message----- From: gbakonyi [mailto:[email protected]] Sent: Mittwoch, 10. Oktober 2012 18:13 To: [email protected] Subject: Re: CXF Interceptor get Soap Message is null ! Hi Daniel, I have a similar situation on the incoming interceptor chain: I wrote an interceptor to process the request object. I placed it in every Phase after UNMARSHAL but, as mentioned here before, the content field of the message is always null. I see my request type in a field named defaultContents but there is no method to get it out of there. Can you please tell me what syntax I should use to place my interceptor at the right point in the chain so as to be able to retrieve the java objects? Thanks a in advance. -- View this message in context: http://cxf.547215.n5.nabble.com/CXF-Interceptor-get-Soap-Message-is-null-tp4516145p5716308.html Sent from the cxf-user mailing list archive at Nabble.com.
