Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>And here's <a href="https://stackoverflow.com/a/10096951/517815">the other piece of your puzzle</a>. You're already using <a href="http://en.wikipedia.org/wiki/Java_API_for_RESTful_Web_Services" rel="nofollow noreferrer">JAX-RS</a>, so why not use <a href="http://jax-ws.java.net/" rel="nofollow noreferrer">JAX-WS</a> as well?</p> <p><a href="https://stackoverflow.com/questions/2064447/jax-ws-map-exceptions-to-faults">This thread</a> and <a href="http://io.typepad.com/eben_hewitt_on_java/2009/07/using-soap-faults-and-exceptions-in-java-jaxws-web-services.html" rel="nofollow noreferrer">this blog post</a> cover mapping Exceptions into SOAP faults. Short and sweet:</p> <blockquote> <p>The JAX-WS 2.0 specification demands that the exception annotated with <a href="http://java.sun.com/javaee/5/docs/api/javax/xml/ws/WebFault.html" rel="nofollow noreferrer"><code>@WebFault</code></a> must have two constructors and one method [getter to obtain the fault information]:</p> <pre><code>WrapperException(String message, FaultBean faultInfo) WrapperException(String message, FaultBean faultInfo, Throwable cause) FaultBean getFaultInfo() </code></pre> <p>The WrapperException is replaced by the name of the exception, and FaultBean is replaced by the class name that implements the fault bean. The fault bean is a Java bean that contains the information of the fault and is used by the Web service client to know the cause for the fault.</p> </blockquote> <p>And there's your mapping. Simply specify implementations of the above signatures in the context of <code>@WebFault</code> and your SOAP API should map these happily. Obviously, the links contain more details.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload