/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* SOAP 1.2 Fault class that can be marshalled/unmarshalled by JAXB
* <p/>
* <pre>
* Example:
* <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
* xmlns:m="http://www.example.org/timeouts"
* xmlns:xml="http://www.w3.org/XML/1998/namespace">
* <env:Body>
* <env:Fault>
* <env:Code>
* <env:Value>env:Sender* </env:Value>
* <env:Subcode>
* <env:Value>m:MessageTimeout* </env:Value>
* </env:Subcode>
* </env:Code>
* <env:Reason>
* <env:Text xml:lang="en">Sender Timeout* </env:Text>
* </env:Reason>
* <env:Detail>
* <m:MaxTime>P5M* </m:MaxTime>
* </env:Detail>
* </env:Fault>
* </env:Body>
* </env:Envelope>
* </pre>
*
* @author Vivek Pandey
*/
"code",
"reason",
"node",
"role",
"detail"
})
SOAP12Fault() {
}
}
if (detailObject != null) {
detail = new DetailType();
}
}else{
}
}
}
try {
} catch (SOAPException e) {
throw new WebServiceException(e);
}
detail = new DetailType();
}
}
}
}
return code;
}
return reason;
}
return node;
}
return role;
}
return detail;
}
}
}
try {
}
}
}
detail.appendChild(n);
}
}
}
return new SOAPFaultException(fault);
} catch (SOAPException e) {
throw new WebServiceException(e);
}
}
/**
* Recursively populate the Subcodes
*/
}
}
/**
* Adds Fault subcodes from {@link SOAPFault} to {@link #code}
*/
continue;
}
}
}
}