On 10/09/13 21:26, jasminadesai wrote:
Thanks.
I just tried the same and it gives me the same error as before:

Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"",
local:"InvoiceDate"). Expected elements are
<{http://myservice.com/transaction}Address>,<{http://myservice.com/transaction}Invoice>,<{http://myservice.com/transaction}InvoiceBase>,<{http://myservice.com/transaction}InvoiceTax>,<{http://myservice.com/transaction}InvoiceTaxBase>,<{http://myservice.com/transaction}InvoiceType>,<{http://myservice.com/transaction}AuthLevel>,<{http://myservice.com/transaction}Item>,<{http://myservice.com/transaction}ItemBase>,<{http://myservice.com/transaction}Price>,<{http://myservice.com/transaction}TaxAuth>,<{http://myservice.com/transaction}TaxationType>

That property affects the serialization, what you are seeing is the de-serialization issue, so either keep the namespaces on the in JSON or use JSONProvider transform configuration to adapt; in this case InvoiceDate is not even in the list of allowed types

Sergey


Am I missing anything?

Regards,
Jasmina




--
View this message in context: 
http://cxf.547215.n5.nabble.com/Namespace-in-JSON-tp5733656p5733817.html
Sent from the cxf-user mailing list archive at Nabble.com.



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to