I am currently involved with a project for which my manager wants to
convert existing  module into Web service.  It is a Reporting tool,  a
servlet can return report either in csv/xml once we specify report name,
parameters etc.

Users will first request the list of all available reports and then will
get the specific report depending on the list. I am quite new to web
services as such. I downloaded CXF and tried couple of small samples but
need to know the best way of doing it. 

 

1)      For List - I am thinking of giving client collection of all
report DAOs  (HashMap - with key as report Id)

2)      For specific report - get the DAO from client with report name
and parameters and return back string buffer.

 

But I would like to know normally what's the practice and how I should
handle the messaging between client and server ? Instead of DAOs shall I
use XML ? From performance point of view is there anything I should be
aware of?  

 

Thanks,

Manisha

 

 

 

Reply via email to