This demo application demonstrates how to use Mobile Connect server side.

Running the Application

  1. Deploy the server side application
  2. Clone repository

    git clone https://github.com/Mobile-Connect/java_client_demo_app.git
  3. Put urls that are associated with "with/without discovery" modes in deployed Server Side SDK in file \local-path\java_client_demo_app\src\main\resources\config\config.properties as config.url.
  4. Open console from demo_app directory and execute maven command clean install
    mvn clean install
    cd target
    java -jar .\server_side_demo-app-1.0.0.war
  5. Navigate to http://localhost:8083 in your browser

Using the Application

You can send a request using three types:

  1. using subscriber MSISDN;
  2. using Mobile Country Code and Mobile Network Code (MCC/MNC);
  3. without any parameters (default option).

Also you can pass IP address of the end-user's device as extra parameter.

  • If you are using only msisdn the request to your server side part will be: http://server_side_endpoint?msisdn=your_msisdn.
  • When you are using mcc and mnc it will be: http://server_side_endpoint?mcc=your_mcc&mnc=your_mnc.
  • If you choose 'None' mode: http://server_side_endpoint.
  • Also you can check 'IP address' e.g. in msisdn mode: http://server_side_endpoint?msisdn=your+msisdn&ip_address=your_ip_address.

Using the Demo Application

Quick start:

Important: Before you run the demo app, we strongly recommend that you read the Getting Started Guide.

MSISDN mode

  1. Check Using MSISDN checkbox.
  2. Input MSISDN in text field.
  3. Click Mobile Connect Log-in button.
  4. And then you will receive a token.

MCC_MNC mode

  1. Check Using MCC_MNC checkbox.
  2. Input MCC and MNC in text field
  3. Click Mobile Connect Log-in button.
  4. You will be redirected to the operator selection page. Here you can type your msisdn and process page and you will receive a token.

None mode

  1. Check None checkbox.
  2. Click Mobile Connect Log-in button.
  3. You will be redirected to the operator selection page. Here you can type your msisdn and process page and you will receive a token.

Also you can send request described above with extra parameter IP.
Check extra mode With IP and input IP in text field before clicking “Mobile Connect” button.

Without discovery mode

  1. Check Using MSISDN checkbox.
  2. Input MSISDN in text field.
  3. Click Mobile Connect Log-in button.
  4. And then you will receive a token.

Support

If you encounter any issues that are not resolved by consulting the resources listed below, send us a message.

Resources