1
我使用httpclient在java中發佈xml。我也期待一個XML的迴應。 如何解析xml的響應?在java中的httppost後處理響應
這是我迄今爲止
HttpClient cliet = HttpClientFactory.getClient("mhurl.com");
...
PostMethod post;
post.setRquestEntity(new StringRequestEntity(myxml_in_string,"xml",...);
...
int result = client.executeMethod(post);
InputStream in = post.getRespoinseBodyAsStream();
?? //Not sure how to handle the response from here
感謝。
哦好吧,我想我會留在標準DOM。謝謝你的幫助。 – Tony 2012-07-25 19:14:09