We have an existing rest web service that does a certain online transaction. It was created to receive input of @FormParam type. When we call this web service, we initially just passed the values by appending it to the url
e.g. /sometransaction?creditCardNumber=123
Problem is, since the number is appended to the url, this gets logged in the web server http requests logs. This cant be since this is sensitive information. We need to pass this the same way a HTML form does a POST submit, it order for the parameters not to be appended to the url and get logged by the web server. Problem is, we don't have a UI page to do this. This is just basically a web service calling another web service.
How can we achieve this?
Code:
@POST
@Path("/dotransaction")
Public Response doTransaction(@BeanParam TxnParams) {
}
Its a rest web service the the params class TxnParams have @FormParam attributes