01: /*
02: * Copyright 2006 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.springframework.ws.soap.soap12;
18:
19: import java.util.Locale;
20: import javax.xml.namespace.QName;
21:
22: import org.springframework.ws.soap.SoapBody;
23:
24: /**
25: * Subinterface of <code>SoapBody</code> that exposes SOAP 1.2 functionality. Necessary because SOAP 1.1 differs from
26: * SOAP 1.2 with respect to SOAP Faults.
27: *
28: * @author Arjen Poutsma
29: * @since 1.0.0
30: */
31: public interface Soap12Body extends SoapBody {
32:
33: /**
34: * Adds a <code>DataEncodingUnknown</code> fault to the body.
35: * <p/>
36: * Adding a fault removes the current content of the body.
37: *
38: * @param subcodes the optional fully qualified fault subcodes
39: * @param reason the fault reason
40: * @param locale the language of the fault reason
41: * @return the created <code>SoapFault</code>
42: */
43: Soap12Fault addDataEncodingUnknownFault(QName[] subcodes,
44: String reason, Locale locale);
45: }
|