JAXB: How can derived object be returned as XML element of base type?

If so, you don't have to worry about that, when you do.

I've got where my misunderstood was. It is not neccessary to define 'xsi:type' explicitly in web-service responce, because one is described by WSDL. When we return derived class, the type is neccessary because client should know how it can unmarshall instance.

According to this the using of @XmlTransient annotation on derived type is the correct way if we want always return exactly instance of parent class.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions