Move through the MISC platform to get the user mobile phone number code

xiaoxiao2021-03-06  77

PROVISION.JSP part of the code:

.....

Try

{

String xmldata = "";

// xmldata = request.getQueryString ();

BufferedReader Reader = Request.getReader ();

String s = "";

Try {

While ((s = reader.readline ())! = null)

{

XMLDATA = (S "/ n");

}

}

Catch (Exception E) {}

Reader.Close ();

Xmldata = XmLData.trim ();

Log.debug (xmldata);

// Parse XML

String Mid = XmlParser.GetXmlValue (XMLDATA, "MID");

String transid = getXmlValue (strXml, "transactionID");

LOG.DEBUG ("MID:" MID);

IF (MID! = null && mid.trim (). Length () == 14)

{

MID = mid.trim ();

String action = XmlParser.GetXmlValue (XmLData, "ActionID");

IF (action! = null)

{

Action = action.trim ();

INT AC = 0;

Try

{

ac = integer.parseint (action);

}

Catch (Exception E)

{

}

String serviceId = XmlParser.GetXmlValue (XmlData, "SpServiceID");

//System.out.println ("Provision !Mid:" mid "action_id:" Action "

Service: " serviceID);

// miscid = misc.getuserarea (MID);

String Mobile = XmlParser.GetXmlValue (xmlData, "Mobile_ID");

IF (Mobile! = null && Mobile.Length () <11)

{

Mobile = Request.getParameter ("http_x_up_calling_line_id");

}

...........

转载请注明原文地址:https://www.9cbs.com/read-92739.html

New Post(0)