Hi,
I am facing an issue with POST/PUT input in Json format, we use multiple
schemas and using which we are validating our Input.
When I try POST/PUT,
cvc-complex-type.2.4.a: Invalid content was found starting with element
'image'. One of '{"http://sample-json.com/xml/ns/image":image}' is expected.
Input looks like,
{
"ns1.foo": {
"ns1.id": 1,
"ns1.name": "no:1-Foo"
"ns1.images": {
"ns2.image": [
{
"ns2.imageUri": "thumbnail.jpg",
"ns2.height": 342,
"ns2.type": "thumbnail",
"ns2.width": 380
}
]
},
}
}
JSONProvider bean looks like,
<bean id="jsonpProvider"
class="com.ebates.cxf.jaxrs.provider.JSONPProvider" autowire="constructor">
<property name="namespaceMap" ref="jsonNamespaceMap" />
</bean>
<util:map id="jsonNamespaceMap" map-class="java.util.Hashtable">
<entry key="http://sample-json.com/xml/ns/foo" value="ns1"/>
<entry key="http://sample-json.com/xml/ns/image" value="ns2"/>
</util:map>
Thanks in advance.
-Senthil Arumugam
--
View this message in context:
http://cxf.547215.n5.nabble.com/Issue-with-Json-Namespace-in-POST-PUT-tp3276515p3276515.html
Sent from the cxf-user mailing list archive at Nabble.com.