01: /*
02: * Copyright (c) 1998-2006 Caucho Technology -- all rights reserved
03: *
04: * This file is part of Resin(R) Open Source
05: *
06: * Each copy or derived work must preserve the copyright notice and this
07: * notice unmodified.
08: *
09: * Resin Open Source is free software; you can redistribute it and/or modify
10: * it under the terms of the GNU General Public License as published by
11: * the Free Software Foundation; either version 2 of the License, or
12: * (at your option) any later version.
13: *
14: * Resin Open Source is distributed in the hope that it will be useful,
15: * but WITHOUT ANY WARRANTY; without even the implied warranty of
16: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
17: * of NON-INFRINGEMENT. See the GNU General Public License for more
18: * details.
19: *
20: * You should have received a copy of the GNU General Public License
21: * along with Resin Open Source; if not, write to the
22: *
23: * Free Software Foundation, Inc.
24: * 59 Temple Place, Suite 330
25: * Boston, MA 02111-1307 USA
26: *
27: * @author Scott Ferguson
28: */
29:
30: package javax.xml.soap;
31:
32: import javax.xml.namespace.*;
33:
34: public interface SOAPConstants {
35: static final String DEFAULT_SOAP_PROTOCOL = "SOAP 1.1 Protocol";
36: static final String DYNAMIC_SOAP_PROTOCOL = "Dynamic Protocol";
37: static final String SOAP_1_1_CONTENT_TYPE = "text/xml";
38: static final String SOAP_1_1_PROTOCOL = "SOAP 1.1 Protocol";
39: static final String SOAP_1_2_CONTENT_TYPE = "application/soap+xml";
40: static final String SOAP_1_2_PROTOCOL = "SOAP 1.2 Protocol";
41: static final String SOAP_ENV_PREFIX = "env";
42:
43: static final String URI_NS_SOAP_1_1_ENVELOPE = "http://schemas.xmlsoap.org/soap/envelope/";
44:
45: static final String URI_NS_SOAP_1_2_ENCODING = "http://www.w3.org/2003/05/soap-encoding";
46:
47: static final String URI_NS_SOAP_1_2_ENVELOPE = "http://www.w3.org/2003/05/soap-envelope";
48:
49: static final String URI_NS_SOAP_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
50:
51: static final String URI_NS_SOAP_ENVELOPE = "http://schemas.xmlsoap.org/soap/envelope/";
52:
53: static final String URI_SOAP_1_2_ROLE_NEXT = "http://www.w3.org/2003/05/soap-envelope/role/next";
54:
55: static final String URI_SOAP_1_2_ROLE_NONE = "http://www.w3.org/2003/05/soap-envelope/role/none";
56:
57: static final String URI_SOAP_1_2_ROLE_ULTIMATE_RECEIVER = "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver";
58:
59: static final String URI_SOAP_ACTOR_NEXT = "http://schemas.xmlsoap.org/soap/actor/next";
60:
61: static final QName SOAP_DATAENCODINGUNKNOWN_FAULT = new QName(
62: URI_NS_SOAP_1_2_ENVELOPE, "DataEncodingUnknown",
63: SOAP_ENV_PREFIX);
64:
65: static final QName SOAP_MUSTUNDERSTAND_FAULT = new QName(
66: URI_NS_SOAP_1_2_ENVELOPE, "MustUnderstand", SOAP_ENV_PREFIX);
67:
68: static final QName SOAP_RECEIVER_FAULT = new QName(
69: URI_NS_SOAP_1_2_ENVELOPE, "Receiver", SOAP_ENV_PREFIX);
70:
71: static final QName SOAP_SENDER_FAULT = new QName(
72: URI_NS_SOAP_1_2_ENVELOPE, "Sender", SOAP_ENV_PREFIX);
73:
74: static final QName SOAP_VERSIONMISMATCH_FAULT = new QName(
75: URI_NS_SOAP_1_2_ENVELOPE, "VersionMismatch",
76: SOAP_ENV_PREFIX);
77:
78: }
|