Which is the best solution for connecting a Java application to a php server
I want to create a Java desktop application(i'm still not sure that java is the best option, but i know it better than other programming languages :D) to connect to a server made in php. I want to make requests to php server to give me some dates from its database in .xml format. The problem is how can I do that in the fastest and most secure mode? I know that I can use the URL class and URLConnection to ask to the server the informations i need, but there is an another way? I think that the xml files will be enough big and I also need to parse them for use the informations, so I need for a very fast transfer between my java application and php server?
Thanks in advance!