Generally a web service talks to a remote database to fetch required data. In my case, I have a web service that gets the data from another web application (given the url). Both are java based applications. How do I communicate with the remote web application ? via HttpUrlConnection? I need to send JSON Objects and receive JSON Arrays. Are there any code examples that I can refer to? Please guide me.