provision.jsp中部份代码:
.....
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");
}
...........