01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19: package javax.xml.soap;
20:
21: import javax.xml.namespace.QName;
22:
23: /** The definition of constants pertaining to the SOAP 1.1 protocol. */
24: public interface SOAPConstants {
25:
26: /** The namespace identifier for the SOAP envelope. */
27: public static final String URI_NS_SOAP_ENVELOPE = "http://schemas.xmlsoap.org/soap/envelope/";
28:
29: /**
30: * The namespace identifier for the SOAP encoding (see section 5 of the SOAP 1.1
31: * specification).
32: */
33: public static final String URI_NS_SOAP_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
34:
35: /**
36: * The URI identifying the first application processing a SOAP request as the intended actor for
37: * a SOAP header entry (see section 4.2.2 of the SOAP 1.1 specification).
38: */
39: public static final String URI_SOAP_ACTOR_NEXT = "http://schemas.xmlsoap.org/soap/actor/next";
40:
41: public static final String DYNAMIC_SOAP_PROTOCOL = "Dynamic Protocol";
42:
43: public static final String SOAP_1_1_PROTOCOL = "SOAP 1.1 Protocol";
44:
45: public static final String SOAP_1_2_PROTOCOL = "SOAP 1.2 Protocol";
46:
47: public static final String DEFAULT_SOAP_PROTOCOL = "SOAP 1.1 Protocol";
48:
49: public static final String URI_NS_SOAP_1_1_ENVELOPE = "http://schemas.xmlsoap.org/soap/envelope/";
50:
51: public static final String URI_NS_SOAP_1_2_ENVELOPE = "http://www.w3.org/2003/05/soap-envelope";
52:
53: public static final String URI_NS_SOAP_1_2_ENCODING = "http://www.w3.org/2003/05/soap-encoding";
54:
55: public static final String SOAP_1_1_CONTENT_TYPE = "text/xml";
56:
57: public static final String SOAP_1_2_CONTENT_TYPE = "application/soap+xml";
58:
59: public static final String URI_SOAP_1_2_ROLE_NEXT = "http://www.w3.org/2003/05/soap-envelope/role/next";
60:
61: public static final String URI_SOAP_1_2_ROLE_NONE = "http://www.w3.org/2003/05/soap-envelope/role/none";
62:
63: public static final String URI_SOAP_1_2_ROLE_ULTIMATE_RECEIVER = "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver";
64:
65: public static final String SOAP_ENV_PREFIX = "env";
66:
67: public static final QName SOAP_VERSIONMISMATCH_FAULT = new QName(
68: "http://www.w3.org/2003/05/soap-envelope",
69: "VersionMismatch", "env");
70:
71: public static final QName SOAP_MUSTUNDERSTAND_FAULT = new QName(
72: "http://www.w3.org/2003/05/soap-envelope",
73: "MustUnderstand", "env");
74:
75: public static final QName SOAP_DATAENCODINGUNKNOWN_FAULT = new QName(
76: "http://www.w3.org/2003/05/soap-envelope",
77: "DataEncodingUnknown", "env");
78:
79: public static final QName SOAP_SENDER_FAULT = new QName(
80: "http://www.w3.org/2003/05/soap-envelope", "Sender", "env");
81:
82: public static final QName SOAP_RECEIVER_FAULT = new QName(
83: "http://www.w3.org/2003/05/soap-envelope", "Receiver",
84: "env");
85: }
|