Web service in java client in javascript