i want to provide my one API to other company's server which will return a unique token number generated at my end and in response to that call, i will return the token number.
Should i use REST Web Service or Servlet for direct URL hit? or any other mode of communication?