X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=how_to_add_new_webservice.txt;h=ebdd3829bf21697027e2122f33ff8a59f40de639;hb=1eab6cadc31107fabe7ef060de1ae91eeb4a025b;hp=ae868fc25a0ded5e5beb4b7525646704b11c08de;hpb=4aba002116a533278390914cf48b653eb215097b;p=jabaws.git diff --git a/how_to_add_new_webservice.txt b/how_to_add_new_webservice.txt index ae868fc..ebdd382 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. @@ -48,7 +51,7 @@ How To add a new executable. implement a web service which confirms to it within a webservices source folder. -12) Register web service in WEB-INF/ web.xml and sun-jaxws.xml +12) Register web service in WEB-INF/web.xml and WEB-INF/sun-jaxws.xml 13) Add generated wsdl to wsbuild.xml ant script to generate the stubs @@ -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.