title: Convert SOAP response to xstream object
body: <p>I have Soap response from another application which i am trying to convert to an object using <strong>"XStream"</strong> using below code;</p>
  
  <pre><code>XStream xstream = new XStream(new DomDriver());
  file file = new File("file.xml");
  InputStream inputStream= new FileInputStream(file);
  Reader reader = new InputStreamReader(inputStream,"UTF-8");
  String reqXMLString = "" //Stream converted to XML
  System.out.println(xstream.fromXML(reqXMLString)); **//Error line**
  </code></pre>
  
  <p>file.xml:</p>
  
  <pre><code>&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;soap:Body&gt;
          &lt;soap:validationErrors&gt;
              &lt;messages&gt;
                  &lt;message&gt;
                      &lt;code&gt;1020&lt;/code&gt;
                      &lt;text&gt;Filed 1 is mandatory&lt;/text&gt;
                  &lt;/message&gt;                  
              &lt;/messages&gt;
          &lt;/soap:validationErrors&gt;
      &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>When i try to convert this xml to an java object. i am getting below error;</p>
  
  <pre><code>Exception in thread "main" com.thoughtworks.xstream.mapper.CannotResolveClassException: soap:Envelope : soap:Envelope
      at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:68)
      at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:71)
      at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
      at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
      at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
  </code></pre>
  
  <p>So may I know, <strong>how to convert a soap response into java object using XStream</strong> ?</p>
  
  <p>Thanks in advance.</p>