Praful Thakare wrote:
I have chosen wrong web service framework ;)
which one ?
Praful Thakare wrote:
(for websites it would be browser) have access to the session attributes
hell NO
All that browsers knows is the session id that is mostly stored in cookies by browser and with every request browser sends this session id to server and that's how server identifies session for given user.
I don't get the remaining points you made, , I thought getCategory was returning list of categories after reterving ti from session for given user.
but the web service (jax-ws) can't return List, ArrayList, Maps etc
are you sure? did you try it? did you try HashMap (concrete type) instead of Map (Interface).
-P
Praful Thakare wrote:well, in development phase of my web service I always use some tool for client, like SOAP UI for jax-ws and/or RestClient for Jax-RS. for simple reason it helps me to narrow down the problem.
once my web service gives expected result using these tools, I am sure my web service is working fine then I go for developing client (if required) so any issue here after is (always) related to client.
so if possible for you, try to use SOAP UI and see if you can access both methods without error.
If not then one way is to narrow down the problem is to invoke getDataFromDb from helloworld in server and invoke only hellowWorld from client.
so steps are
Modify Server HelloWorld method to invoke getDataFromDb (I assume both are in same class so it will be local call)
Modify Client and comment the call of getDataFromDb.
if this works fine, i.e getDataFromDb is success then yes there is something wrong with the way you are invoking it from client.