M
M
Michael2018-08-12 12:53:46
Java
Michael, 2018-08-12 12:53:46

Why doesn't the nested object get converted to XML when marshaled?

Can you please tell me why, when marshaling, one object stubbornly refuses to turn into XML and its package name, class and @ObjectId are simply indicated? In this case, the total mass of the remaining nested objects is normally transformed.
Annotations are placed - @XmlAccessorType(XmlAccessType.FIELD) @XmlType(...).
The result is:

<xmlRootObject>
  ...
  <innerObjectList>[email protected]</innerObjectList>
  ...
</xmlRootObject>

But it should be like this:
<xmlRootObject>
  ...
  <innerObjectList>
    <innerObject>
      <id>..</id>
      <field1>..</field1>
      ...
    </innerObject>
  </innerObjectList>
  ...
</xmlRootObject>

I see with the debugger that the object itself is correctly formed. Further, after the formation, it is sent for processing by WebLogic. (using javax.jws.WebMethod; javax.jws.WebService;)
I broke my whole head, I don’t know where to dig further, what are your thoughts / ideas?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question