how can i get the response "AS IS" (XML Format) in a string or inputstream? The response i am getting from my SOAP webservice in a String, it seems to be ALL in one line and not formatted XML. How can i do this? (Edited): I tried to change the getResponseBodyAsStream but i get this response: org.apache.commons.httpclient.AutoCloseInputStream@23597cac
Code to get the response:
String response = post.getResponseBodyAsString();
bufferedReader.close();
return response;
Returned string:
<tag1>name</tag1><name>JustaName</name>etc...
How can i get this nice like(example):
<tag1>name</tag1>
<name>JustaName
</name>etc...