From a2417c6ec72f3ab7da7c9de1cb23b1fb9c25db39 Mon Sep 17 00:00:00 2001 From: Sasha Sherstnev Date: Fri, 9 Aug 2013 10:15:35 +0100 Subject: [PATCH] improve instruction for new web services --- how_to_add_new_webservice.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/how_to_add_new_webservice.txt b/how_to_add_new_webservice.txt index ae868fc..5825767 100644 --- a/how_to_add_new_webservice.txt +++ b/how_to_add_new_webservice.txt @@ -39,6 +39,9 @@ How To add a new executable. 9) Test the parser + +################################################################################################### + 10) Decide which web services interface your executable is going to match. For example if the executable output can be represented as SequenceAnnotation then SequenceAnnotation interface might be appropriate. @@ -59,8 +62,7 @@ How To add a new executable. - you do not have interfaces to serialize. JAXB cannot serialize them. - you have a default no args constructor (can be private if you do not need it) - JAXB cannot serialize a Map, use custom data structure instead! - - Enum cannot be serialized as its abstract class (do not confuse with enum - which is fine) + - Enum cannot be serialized as its abstract class (do not confuse with enum which is fine) - Fields serialization leave a little more space for manoeuvre, so use it. If you do then you can accept and return interfaces, e.g. List, Map; abstract classes etc, from your methods. -- 1.7.10.2