title: How WebFault Annotation at JAX-WS Works?
body: <p>I have implemented throwing an exception at Java Web Services. My class is as follows:</p>
  
  <pre><code>@WebFault(faultBean = "com.au.ex.FaultBean", targetNamespace =
  "something_here") public class Ex extends Exception {
    ... 
  }
  </code></pre>
  
  <p>If I don't define <em>targetNamespace</em> it throws <strong>null pointer exception</strong> at <strong>Soap UI</strong>. </p>
  
  <p>My question is: <strong><em>should I define targetNamespace and how can I retrieve default targetNamespace</em></strong>?</p>
  
  <p><strong>PS:</strong> If I define the same namespace with web services' name space it still throws an exception. If I define anything else it works?</p>
  
  <p>Any ideas?</p>