Blackberry-not getting soap response xml <p>I am trying to consume SOAP response xml by passing request xml in a string, using BlackBerry Java plugin for Eclipse. I have been struck on this for the past two days looking for a way to solve it.</p> <p>I have attached the sample code below. </p> <pre class="lang-java prettyprint-override"><code>public String CheckXml() { final String requestXml="&lt;SOAP:Envelope xmlns:SOAP=\"http://schemas.xmlsoap.org/soap/envelope/\"&gt;&lt;header xmlns=\"http://schemas.cordys.com/General/1.0/\"&gt;&lt;/header&gt;&lt;SOAP:Body&gt;&lt;authenticateAgainstOID xmlns=\"http://schemas.cordys.com/OIDAuthentication\"&gt;&lt;stringParam&gt;HEMANTS_MUM013&lt;/stringParam&gt;&lt;stringParam1&gt;TATA2012&lt;/stringParam1&gt;&lt;/authenticateAgainstOID&gt;&lt;/SOAP:Body&gt;&lt;/SOAP:Envelope&gt;"; final String HOST_ADDRESS = "http://xyz.com/cordys/com.eibus.web.soap.Gateway.wcp?organization=o=B2C,cn=cordys,cn=cbop,o=tatamotors.com&amp;SAMLart=MDFn+8e5dRDaRMRIwMY7nI84eEccbx+lIiV0VhsOQ7u+SKG6n5+WNB58"; String result=""; try { HttpConnection url=(HttpConnection)Connector.open(HOST_ADDRESS); url.setRequestProperty("Content-Type", "text/xml"); url.setRequestMethod(HttpConnection.GET); OutputStreamWriter writer=new OutputStreamWriter(url.openOutputStream()); writer.write(requestXml); writer.flush(); writer.close(); StringBuffer buffer1=new StringBuffer(); InputStreamReader reader=new InputStreamReader(url.openInputStream()); StringBuffer buffer=new StringBuffer(); char[] cbuf=new char[2048]; int num; while (-1 != (num = reader.read(cbuf))) { buffer.append(cbuf, 0, num); } String result1 = buffer.toString(); } catch (Exception e) { System.out.println(e); } return result; } </code></pre>