Search code examples
androidweb-servicesdelphisoapdelphi-xe8

how to communicate mobile app with the soap web service server with out ip address and port


I am developing mobile apps by using Delphi XE8. And also I made soap webservice server by using Delphi XE8. I am developing internal mobile app for an organization. I install webservice server at the organization internal server. And the mobile app communicates with that webservice server. The webservice server publish the soap service. for example http://192.168.1.125:16645.

The mobile app has to be configured this URL to communicate with the server since this changes for every organization.

I don't want to give such a configuration to mobile app users. Could you help me out how can I automate this with this kind of URL?

Any domain things?


Solution

  • There are server implementations such as ActiveMQ which broadcast their own server name via UDP, so that clients can locate them automatically.

    See for a related question: Discover a running ActiveMQ message broker using IP multicast and a related blog post by me (with source code) here and here. Indy can be used with the Delphi mobile compilers, so this code should work with your apps.

    You can implement the same logic with your server, as long as there are no network restrictions for UDP.