XmlPullParser xmlPullParserFromSocket(InputStream socketInputStream) throws IOException, XmlPullParserException {
String line, xmlRpcText = "";
BufferedReader br = new BufferedReader(new InputStreamReader(socketInputStream));
while ((line = br.readLine()) != null && line.length() > 0); // eat the HTTP POST headers
while (br.ready())
xmlRpcText = xmlRpcText + br.readLine();
// Log.d(Tag.LOG, "xml received:" + xmlRpcText);
InputStream inputStream = new ByteArrayInputStream(xmlRpcText.getBytes("UTF-8"));
XmlPullParser pullParser = XmlPullParserFactory.newInstance().newPullParser();