Hello,
I am creating a REST style web service and am creating the xml response
using Jibx with StAX as my parser.
However, when a jibxexception is thrown during binding, the client receives
xml that is not well formed:
<GetQuestionResponse>
<Question id="1">
<Category id="1">
<Name>calculus</Name>
</Category>
<Title>my problem</Title>
<User id="1">
<Username>abstractionz</Username>
</User>
<Problem>this is my problem</Problem>
So to get around this issue I am building the response in memory first,
which I don't want to do.
Then if there is a jibx exception, I clear out what is in memory, and send
back an error response.
I would like to just keep streaming the xml to the output stream, but at the
same time I don't want
to be sending the client invalid xml. Has anybody else come across this
issue?
rgds,
Peter
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users