Thanks Sergey.

I did setup the name space map.
But it still does not work.

I use the same set of beans for both soap and rest.

Soap works and rest too with request type as xml.
It get the following error with JSON request:

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>
        ... 83 more

Also, the same json request works if the namespace is completely removed.

Not sure what am I missing here.

Regards,
Jasmina



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

Reply via email to