title: Stream Error in Soap Connection
body: <p>I develop android application in java. And, this application connects .net soap application. It is ok, it works (i use http post method). 
  My actual problem is web service returns big and huge (especially contains html --cdata source code) data.
  So, when i request (such as, getReports methods) to web service, it returns about 3 - 5 mb stream data, causes outofmemory. Because of this, i couldn't parse it. I know my connection method cannot be true.
  How can i implement truely if i make a mistake?</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>String NAMESPACE = "http://tempuri.org/lorem";
  String SURL = "http://www.test.com/lorem/test.asmx";
  String xml = "&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;";
  xml += "&lt;soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:web=\"http://tempuri.org/\"&gt;"
          + "&lt;soapenv:Header/&gt;&lt;soapenv:Body&gt;"
          + "&lt;web:getReport&gt;&lt;web:strLang&gt;strLang&lt;/web:strLang&gt;&lt;/web:getReport&gt;"
          + "&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;";
  URLConnection connection = url.openConnection();
  HttpURLConnection httpconn = (HttpURLConnection) connection;
  ByteArrayOutputStream bout = new ByteArrayOutputStream();
  bout.write(xml.getBytes());
  byte[] b = bout.toByteArray();
  httpconn.setRequestProperty("SOAPAction", Namespace+ "/" + "getReport");
  httpconn.setRequestProperty("Accept-Encoding","gzip,deflate");
  httpconn.setRequestProperty("Host","www.test.com");
  httpconn.setRequestMethod("POST");
  httpconn.setDoInput(true);
  httpconn.setDoOutput(true);
  httpconn.connect();
  OutputStream out = httpconn.getOutputStream();
  out.write(b);
  InputStreamReader isr = new InputStreamReader(httpconn.getInputStream());
  BufferedReader in = new BufferedReader(isr);
  
  String inputLine = "";
  StringBuffer parsingData = new StringBuffer();
  while (null != (inputLine = in.readLine())) {
      // OutOfMemory Error
      parsingData.append(inputLine);
  }
  
  /*
  * parsingMethods (parsingData); 
  */
  </code></pre>