title: How to get error message from soap response in Java
body: <p>I used Jax-ws web services and <strong>generated client code using wsimport (Java API)</strong> from wsdl. When I execute one request using <strong>SAOP UI</strong> then I got following output.</p>
  
  <pre><code> &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://schemas.xmlsoap.org/soap/envelope/"&gt;
   &lt;SOAP-ENV:Header/&gt;
   &lt;SOAP-ENV:Body&gt;
    &lt;SOAP-ENV:Error&gt;Cannot create a new Goal for Receiver with Id : 3,as a Goal already exists &lt;/SOAP-ENV:Error&gt;
  &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>I want to fetch above error message using <strong>java</strong> as it is <strong>not coming in response object</strong>. I tried using <strong>Binding Provider but no luck</strong>. Any help to get this message will be appreciated.</p>