-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hantsy though about making telematic server continuously fetching timestamp value provided of ACME Server, whenever ACME Server has a new entity it should update it's timestamp, so telematic fetches ACME server.
We're using this entity:
https://github.com/crised/server-android/blob/master/applications/spark/src/main/java/com/telematic/spark/rest/MemberREST.java
e.g.:
{"id":0,"name":"John Smith","email":"john.smith@mailinator.com","phoneNumber":"2125551212"}
ACME Server
Make deployment that:
Publish JAX-WS.
Makes an object annotated with JAXB, similar to the link bellow. Publish it into a Web Service. Use WSDL, make common simple assumptions. Only Java EE 6, use CDI.
Telematic Server
In this server, consume the web service. Annotate into an @entity class, then persist the class into a DB, then save the xml file into disk.
Also make a RESTful service to publish the same data. JSON is needed here.
SOAPUI tool preferred to see soap message.
The optimal idea is to use the same class, that consumes the web service, @entity, and generate RESTful resource.