Solved

Getting mobile number while executing a HTTP Conenction from mobile in J2ME application

Posted on 2007-11-22
7
2,758 Views
Last Modified: 2013-11-24
I am executing a HTTP connection from a mobile in a J2ME application.
I my JSP/Servlet I want to get the mobile or msisdn number
0
Comment
Question by:sangameshrh
  • 3
  • 2
7 Comments
 
LVL 5

Assisted Solution

by:qasitouch
qasitouch earned 250 total points
ID: 20334109
there are two things related to MSISDN number.

it is dependant on service provider weather thay allow this or not.

here is the list of populat headers you can use to get the MSISDN number using http conection.

request.getHeader("http_x_up_calling_line_id");
request.getHeader("x-up-calling-line-id");
request.getHeader("HTTP_X_UP_SUBNO");
request.getHeader("MSISDNHeader");
request.getHeader("X-MSISDN");
request.getHeader("x-wsb-msisdn-content-filter");
request.getHeader("x-msisdn");

you will get the MSISDN number if the service provider allows this. otherwise you will not get the MSISDN number.

note: normaly service providers don't allow this.

and this information was provided to me by service providers during some official meetings.


Kind Regards,
qasitouch.
0
 
LVL 12

Accepted Solution

by:
keyurkarnik earned 250 total points
ID: 20481406
Your best bet would be to print out all the headers as well as POST parameters that you get on your servlet.
Then you can choose the one you require and proceed.

Usually the service providers have specific fields, so printing out the details will work best for you.
0
 
LVL 5

Expert Comment

by:qasitouch
ID: 20913089
Its right that it can only be authorized by service provider, but you cann't get that using above headers because every service provider uses self defined headers.

currently I get the chance of working with a service provider, and come to know this. In short its imposible to get it.

0
 
LVL 12

Expert Comment

by:keyurkarnik
ID: 20913101
it is not impossible... just may not work for some service providers as they might not add the necessary headers...
generally 'most' provides do add the necessary headers...
0
 
LVL 12

Expert Comment

by:keyurkarnik
ID: 20913104
in india, you can get the headers from airtel, idea, and vodafone. bpl does not add the headers.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Requested array size exceeds VM limit 3 84
java.io.BufferedReader   readLine()  //returns the entire file ? 4 60
servlet doXXX methods 3 38
oracle 11g 23 50
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now