This demo application demonstrates how to use Mobile Connect server side.
Running the Application
- Deploy the server side application
-
Clone repository
git clone https://github.com/Mobile-Connect/java_client_demo_app.git
- 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.
- 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
- Navigate to http://localhost:8083 in your browser
Using the Application
You can send a request using three types:
- using subscriber MSISDN;
- using Mobile Country Code and Mobile Network Code (MCC/MNC);
- 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
- Check
Using MSISDN
checkbox. - Input MSISDN in text field.
- Click
Mobile Connect Log-in
button. - And then you will receive a token.
MCC_MNC mode
- Check
Using MCC_MNC
checkbox. - Input MCC and MNC in text field
- Click
Mobile Connect Log-in
button. - 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
- Check
None
checkbox. - Click
Mobile Connect Log-in
button. - 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
- Check
Using MSISDN
checkbox. - Input MSISDN in text field.
- Click
Mobile Connect Log-in
button. - 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.