I have a web-service which receives a POST request from the client (i.e. I receive a JSON on server). Then I perform the validation that if the user is authorized by performing the check in my database.
But if I don't find the user in my database , then I have to hit another web-service, at some other location(i.e a different URL), which has been exposed by some external third party, which will respond with a JSON containing details of authenticity of user(i.e. if user is authorized or not).
Where I am stuck is : how do I hit another web-service , send a JSON and then , also receive the JSON from third party web-service.
Please help me !!! thanks in advance.