huuanh1987 / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

JAXB executing batches - batch_run_response only allows friends_get response #145

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
A fix is currently checked into schema.xsd which allows the JAXB client to
at least recognise the batch_run_response tag coming back from Facebook.
However, it currently only allows a batch response to contain a friends_get().

This batch_run_response element definition must be extended to include
every possible other method response type as one of its children. A batch
can include all sorts of methods, not just friends_get! :o)

A major rework of schema.xsd is required to support this. Element types
need to be converted to Complex types so that they can be referenced in
both the standalone response element and as part of the batch response.
Overall, I feel that we need to raise this with Facebook and get them to
update facebook.xsd. Is there any chance of going along this route, or do
we need to completely change schema.xsd in isolation. The element --> type
changes will impact the majority of the elements in the file!

Original issue reported on code.google.com by david.j....@googlemail.com on 2 Dec 2008 at 1:36

GoogleCodeExporter commented 8 years ago
Maybe in your jaxb research, maybe we can do with with a really complicated 
xjb??

I have created a bug in facebook for lots of minor xsd changes.. you might have 
to
create a new bug to keep complaining about their xsd being so bad..

If you do, post up the number here so I can follow it as well.

Original comment by fern...@gmail.com on 2 Dec 2008 at 5:40

GoogleCodeExporter commented 8 years ago
A simple <xsd:any/> tag has sufficed, see JUnit test Issue140FriendsGetJSON for 
an
example of how to use the batch methods with JAXB.

All JUnits on the project run successfully at this time.

Original comment by david.j....@googlemail.com on 17 Dec 2008 at 9:02