2011-08-04 69 views

回答

0

嗨看看here

您將使用的HttpClient發佈一個請求。

HttpPost httppost = new HttpPost(.... 

StringEntity se = new StringEntity(XML,HTTP.UTF_8); 
se.setContentType("text/xml"); 

httppost.setHeader("Content-Type","text/xml"); 

httppost.setEntity(se); 

BasicHttpResponse httpResponse = (BasicHttpResponse) 

httpclient.execute(httppost); 
相關問題