Retrieve JSON data from Java RESTful Web Service

Hi,

On dhtmlxscheduler blog I could read that you added the ability to retrieve JSON data from ASP.NET web service.

Did you do so with Java RESTful Web Service as well ? Any tutorial ?

Thank you for your help.

Can you share any docs about specific of Java Web Service output ?
Scheduler requests data by GET request, so it must be fine for any REST service, the only problem that can arise is non-standard json output. Is any difference between json taht expected by the scheduler and json that is outputted by the Java service ?

The Java Web Service output follows the JSON-HAL format :

Yanns-MacBook-Pro:~ yletallec$ curl localhost:8080/events
{
“_links” : {
“next” : {
“href” : “http://localhost:8080/events?page=1&size=20
},
“self” : {
“href” : “http://localhost:8080/events{?page,size,sort}”,
“templated” : true
},
“search” : {
“href” : “http://localhost:8080/events/search
}
},
“_embedded” : {
“events” : [ {
“eventName” : “Third Annual Progressive Marketing Summit”,
“startDate” : “2012-02-07T10:30:00.000+0000”,
“endDate” : “2012-02-07T15:45:00.000+0000”,
“_links” : {
“self” : {
“href” : “http://localhost:8080/events/38
}
}
}, {
“eventName” : “Third Annual Progressive Marketing Summit”,
“startDate” : “2013-02-07T09:00:00.000+0000”,
“endDate” : “2013-02-07T14:15:00.000+0000”,
“_links” : {
“self” : {
“href” : “http://localhost:8080/events/39
}
}
},[…] {
“eventName” : “MPI TechCon”,
“startDate” : “2013-02-19T07:00:00.000+0000”,
“endDate” : “2013-02-19T18:00:00.000+0000”,
“_links” : {
“self” : {
“href” : “http://localhost:8080/events/59
}
}
} ]
},
“page” : {
“size” : 20,
“totalElements” : 31,
“totalPages” : 2,
“number” : 0
}
}