0 Replies Latest reply on Aug 11, 2010 10:16 AM by sebge2

    Customization a SOAP fault

      Hello,

       

      I'm trying to customize the way a SOAP fault is generated. For that, a special kind of exception is used. This exception contains extra-information such as the current user, the current timestamp, an error code, etc.

       

       

      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://www.xxxx/is/xml/core/model/util/exception">

      <xsd:complexType name="solifeExceptionDetail">

      <xsd:sequence>

      <xsd:element minOccurs="0" name="actionMessage" type="xsd:string"/>

      <xsd:element minOccurs="0" name="business" type="xsd:boolean"/>

      <xsd:element minOccurs="0" name="code" type="xsd:string"/>

      <xsd:element minOccurs="0" name="contextualInformation" type="xsd:string"/>

      <xsd:element minOccurs="0" name="descriptionMessage" type="xsd:string"/>

      <xsd:element minOccurs="0" name="recoverable" type="xsd:boolean"/>

      <xsd:element minOccurs="0" name="summaryMessage" type="xsd:string"/>

      <xsd:element minOccurs="0" name="timestamp" type="xsd:dateTime"/>

      <xsd:element minOccurs="0" name="user" type="xsd:string"/>

      </xsd:sequence>

      </xsd:complexType>

      <xsd:element name="solifeExceptionDetail" type="ns3:solifeExceptionDetail"/>

      </xsd:schema>

       

       

      This is the definition of my SOAP fault in the WSDL file (automatically generated). How is it possible to get a SOAP fault containing (in the details part) this description ?

       

      I'm using JAXWS combined with XML Beans as the data binder.

       

      Thanks