This project contains java classes that will allow you to create a REST service. The web service takes a message, with an attached (Stata or SPSS) dataset, and returns an xml response that is in DDI-C codebook format.
-
Clone the github repository to your machine.
-
Go to the root directory of the cloned repository.
-
Use maven 2 to build the project. On the command line, enter the following command
mvn clean install
The best way to use this SOA service is to:
- Look at code that sends a request to the service end point (http://.../ced2ardata2ddi/data2ddi). See the convertData() method in ced2ar/Source/src/main/java/edu/ncrn/cornell/ced2ar/ei/controllers/Upload.java
- Look at the code that receives the request and returns the reposone. See the spss2DDI() method in ced2ardata2ddi/src/main/java/edu/cornell/ncrn/ced2ar/ced2ardata2ddi/web/controllers/DataFileRestController.java
This war file depends on: ced2arddigenerator to do the actual dataset conversions.