-
Notifications
You must be signed in to change notification settings - Fork 5
Webservice Calls
ValentinoAvonEFSA edited this page Nov 22, 2017
·
2 revisions
In this section, the webservice calls implemented in the EFSA-RCL are presented.
Send a ping to the DCF to see if it is responding or not.
Ping req = new Ping();
boolean isResponding = req.ping();
It retrieves all the dataset related to the current user and to the selected data collection.
GetDatasetList req= new GetDatasetList("dataCollectionCode");
DatasetList<Dataset> datasets = req.getList();
It retrieves a specific dataset given its dataset id.
GetDataset req = new GetDataset("myId");
File file = req.getDatasetFile(); // handle to the downloaded .xml file
Get an xsd file from DCF given its resource id.
GetXsdFile req = new GetXsdFile("myId");
Document xsdFile = req.getFile(); // xml document
Get the list of resources related to the selected data collection.
GetResourceList req = new GetResourceList("dataCollectionCode");
ResourceList resources = req.getList();
Get an acknowledgment of a message given its id.
GetAck req = new GetAck("myMessageId");
Ack ack = req.getAck();
Send an .xml report to the DCF for the selected data collection.
SendMessage req = new SendMessage(File); // input is an handle to the report .xml file
MessageResponse response = req.send();