java reactjs web-services