You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.
I assign a Node which I have previously obtained from a NodeList generated by totoe's selectNodes to anXMLFragment, but when I serialise a Request using Request. WRITER. toXml (req), the XML element is empty: <anXMLFragment />.
I walked through in the debugger, and saw this generated code:
The call to xmlRegistry.getWriter returns null, and so only the empty element is written. I looked in the xmlRegistry instance, and can see that there is indeed no writer for name.pehl.totoe.xml.client.Node in its set of writers.
What's going on here? Do I need to do something in order to get a “pass-through” writer for Node added to the registry? … or am I doing something else wrong, … or is this a bug?
The text was updated successfully, but these errors were encountered:
gallafent
changed the title
Node annotated with @Native is not serialised
Node annotated with @Native is not serialised - does @Native work at all?
Aug 7, 2014
I experimentally altered the element to be @Native String anXMLFragment (and serialised the Element I have into that String before serialising the Request), and discovered that in this case the reserved characters are being encoded rather than passed through. This suggests that @Native is not implemented for serialisation!
I only see response tests at https://github.com/hpehl/piriti/tree/646ee1b0164cbb4ff6415d823ee4536cc0e50ee7/dev/src/test/java/name/pehl/piriti/client/native_ , which does back up that feeling I think.
Is that the case, then, that @Native is only implemented for deserialisation, not for serialisation?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a class which looks something like this (names changed to protect the innocent ;):
I assign a
Node
which I have previously obtained from a NodeList generated by totoe'sselectNodes
toanXMLFragment
, but when I serialise aRequest
usingRequest. WRITER. toXml (req)
, the XML element is empty:<anXMLFragment />
.I walked through in the debugger, and saw this generated code:
The call to
xmlRegistry.getWriter
returns null, and so only the empty element is written. I looked in thexmlRegistry
instance, and can see that there is indeed no writer forname.pehl.totoe.xml.client.Node
in its set of writers.What's going on here? Do I need to do something in order to get a “pass-through” writer for
Node
added to the registry? … or am I doing something else wrong, … or is this a bug?The text was updated successfully, but these errors were encountered: