J'ai ce xml HTTP_Post envoyer dans mon projet android:comment afficher http_post en PHP?
try {
xml_input();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Log.e("Hiba!", "Xml_input fgv hivasa");
}
// TODO Auto-generated method stub
HttpPost httppost = new HttpPost("http://users.atw.hu/festivale/xml_post.php");
StringEntity se;
try {
se = new StringEntity(globalconstants.xml_out, HTTP.UTF_8);
se.setContentType("text/xml");
httppost.setHeader("Content-Type",
"application/soap+xml;charset=UTF-8");
httppost.setEntity(se);
HttpClient httpclient = new DefaultHttpClient();
BasicHttpResponse httpResponse = (BasicHttpResponse) httpclient
.execute(httppost);
HttpEntity r_entity = httpResponse.getEntity();
String xmlString = EntityUtils.toString(r_entity);
System.err.println("Error...." + xmlString);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
- Comment puis-je afficher dans mon site php?
- Et est-ce un bon envoi de xml si je veux quelques règles etc. envoyant à un serveur?
Que souhaitez-vous afficher exactement? – eis
duplication possible de [Php lecture xml dans la demande de publication] (http://stackoverflow.com/questions/2068875/php-reading-xml-in-post-request) – Quentin
mon fichier xml envoyé – david