Hide Forgot
We need a web service that will return me two lines with the author details of a Topic. So when I do http GET on a URL like: http://jboss-eap.bne.redhat.com:8080/TopicIndex/services/gettopicinfo?TopicID=44 It returns me the author name and the author detail (where we will supply the author email). I created a webservice previously using the RESTEasy tutorial in the JBDS docs and it was easy. The only thing was that the wizard put the RESTEasy src files in src/hot and I had to copy them to src/main to make it work. I filed a bug and they fixed it in the next version, but JBDS 4 GA still has the bug.
Done. Source code: https://svn.devel.redhat.com/repos/ecs/Middleware/SkyNetWebservice Web service now running at http://jboss-eap.bne.redhat.com:8080/SkyNetWebservice To use, pass a Topic.TopicSVNURL, with "/" characters replaced with "%20", to http://jboss-eap.bne.redhat.com:8080/SkyNetWebservice/Information/authorfromtopicurl/ For example: http://jboss-eap.bne.redhat.com:8080/SkyNetWebservice/Information/authorfromtopicurl/http:%20%20topicrepo.englab.bne.redhat.com%20TopicRepository%20Tasks%20Middleware%20AS%20Start_Standalone_AS.xml The response is plain text: author.name <author.email> If no matching Topic or Author ID is found, the service returns: ERR:Not_found