001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements. See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership. The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License. You may obtain a copy of the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied. See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 */
019 package javax.xml.soap;
020
021 import javax.xml.namespace.QName;
022
023 /** The definition of constants pertaining to the SOAP 1.1 protocol. */
024 public interface SOAPConstants {
025
026 /** The namespace identifier for the SOAP envelope. */
027 public static final String URI_NS_SOAP_ENVELOPE =
028 "http://schemas.xmlsoap.org/soap/envelope/";
029
030 /**
031 * The namespace identifier for the SOAP encoding (see section 5 of the SOAP 1.1
032 * specification).
033 */
034 public static final String URI_NS_SOAP_ENCODING =
035 "http://schemas.xmlsoap.org/soap/encoding/";
036
037 /**
038 * The URI identifying the first application processing a SOAP request as the intended actor for
039 * a SOAP header entry (see section 4.2.2 of the SOAP 1.1 specification).
040 */
041 public static final String URI_SOAP_ACTOR_NEXT =
042 "http://schemas.xmlsoap.org/soap/actor/next";
043
044 public static final String DYNAMIC_SOAP_PROTOCOL
045 = "Dynamic Protocol";
046
047 public static final String SOAP_1_1_PROTOCOL
048 = "SOAP 1.1 Protocol";
049
050 public static final String SOAP_1_2_PROTOCOL
051 = "SOAP 1.2 Protocol";
052
053 public static final String DEFAULT_SOAP_PROTOCOL
054 = "SOAP 1.1 Protocol";
055
056 public static final String URI_NS_SOAP_1_1_ENVELOPE
057 = "http://schemas.xmlsoap.org/soap/envelope/";
058
059 public static final String URI_NS_SOAP_1_2_ENVELOPE
060 = "http://www.w3.org/2003/05/soap-envelope";
061
062 public static final String URI_NS_SOAP_1_2_ENCODING
063 = "http://www.w3.org/2003/05/soap-encoding";
064
065 public static final String SOAP_1_1_CONTENT_TYPE
066 = "text/xml";
067
068 public static final String SOAP_1_2_CONTENT_TYPE
069 = "application/soap+xml";
070
071 public static final String URI_SOAP_1_2_ROLE_NEXT
072 = "http://www.w3.org/2003/05/soap-envelope/role/next";
073
074 public static final String URI_SOAP_1_2_ROLE_NONE
075 = "http://www.w3.org/2003/05/soap-envelope/role/none";
076
077 public static final String URI_SOAP_1_2_ROLE_ULTIMATE_RECEIVER
078 = "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver";
079
080 public static final String SOAP_ENV_PREFIX
081 = "env";
082
083 public static final QName SOAP_VERSIONMISMATCH_FAULT
084 = new QName("http://www.w3.org/2003/05/soap-envelope", "VersionMismatch", "env");
085
086 public static final QName SOAP_MUSTUNDERSTAND_FAULT
087 = new QName("http://www.w3.org/2003/05/soap-envelope", "MustUnderstand", "env");
088
089 public static final QName SOAP_DATAENCODINGUNKNOWN_FAULT
090 = new QName("http://www.w3.org/2003/05/soap-envelope", "DataEncodingUnknown", "env");
091
092 public static final QName SOAP_SENDER_FAULT
093 = new QName("http://www.w3.org/2003/05/soap-envelope", "Sender", "env");
094
095 public static final QName SOAP_RECEIVER_FAULT
096 = new QName("http://www.w3.org/2003/05/soap-envelope", "Receiver", "env");
097 }