Getting and setting Cookies and Session in Webservice is Supported in JAX-WS. Follow the below link which will help you to enable this on server and Client side.
Programming Stateful JAX-WS Web Services Using HTTP Session
You may also have look at this answer JAX-WS client: maintain session/cookies across multiple services