when does JAXB unmarshaller.unmarshal returns a JAXBElement or a MySchemaObject?

后端 未结 5 1083
日久生厌
日久生厌 2020-12-29 20:41

I have two codes, in two different java projects, doing almost the same thing, (unmarshalling the input of a webservice according to an xsd-file).

But in one case I

5条回答
  •  半阙折子戏
    2020-12-29 21:31

    I have the same problem. JAXB unmarshaller.unmarshal returns a JAXBElement instead of desired MyObject.

    I found and removed @XmlElementDecl. The problem is solved.

提交回复
热议问题