Yes, you need a php page to which java (or any app for that matter) can send a http request to the server. The PHP page calls export_wp()
which results in the XML text stream being sent as a response.
As this stream likely contains personal user information, some stout security should be implemented for access.