On Tue, 2008-01-15 at 00:32 -0500, Liu, Jervis wrote:
> First of all, you need to set wrapped style to false, wrapped style true 
> won't work with JSON (I noticed that you already set wrapped to false). What 
> happened is Jettison reads input stream to a W3C Document, then this W3C 
> Document is used to create a new XMLInputStream. From this point on, the 
> following CXF interceptors will presume they are deal with a normal XML input 
> e.g. the XML section embedded in a soap body.  
> 
> Let's take a concrete example. An inputstream of 
> "{"acme.Book":{"acme.name":"CXF in Action "}}" is transferred to a 
> org.w3c.dom.Document of <Book><name>CXF in Action</name></Book> by Jettison 
> first, then the Document object will be marshaled to a Book object. The 
> wrapper I am talking about is referring to the operation name wrapper of 
> doc-lit wrapped style. For example, if you set wrapped style to true, in 
> order to marshal the Document to Book object successfully, the Document's 
> content need to be <addBook ><Book><name>CXF in 
> Action</name></Book></addBook> instead. 
> 

Anthony: is the reverse of this what you originally imagined that the
JavaScript support might do?



Reply via email to