kirill kazachenka wrote:generated ResultValue have field value not Object type, there is XmlObject, and how can i sent my Book in this ResultValue?
You are still thinking in terms of
Java, not SOAP/XML.
SOAP web services are XML centric. So what is happening here it the that Java's universal type Object is converted to XML's universal type
{http://www.w3.org/2001/XMLSchema}anyType (basically a XML fragment). The downside of this conversion is that it is not reversible as
{http://www.w3.org/2001/XMLSchema}anyType is converted to a Java XML document fragment (which is captured in this case in a
XmlObject). To get any relevant information your are going to have to navigate the information inside that XML fragment.
So basically don't use "Object" unless you actually intend to transfer raw XML.
As long as you stick to
Value Objects that are only comprised of Java types with defined to-XML mappings (and complementary XML-to-Java mappings) and arrays
you should be fine.
From your description it is not clear whether Book contains index, name, and author or whether they all are just different, unrelated classes.