From: Sasha Sherstnev Date: Fri, 9 Aug 2013 09:15:35 +0000 (+0100) Subject: improve instruction for new web services X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a2417c6ec72f3ab7da7c9de1cb23b1fb9c25db39;p=jabaws.git improve instruction for new web services --- 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.