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:
020: package org.apache.axis2.namespace;
021:
022: import javax.xml.namespace.QName;
023:
024: public class Constants {
025:
026: public static final String AXIS2_NAMESPACE_URI = "http://ws.apache.org/namespaces/axis2";
027: public static final String AXIS2_NAMESPACE_PREFIX = "axis2";
028:
029: // Namespace Prefix Constants
030: //////////////////////////////////////////////////////////////////////////
031: public static final String NS_PREFIX_SOAP_ENV = "soapenv";
032: public static final String NS_PREFIX_SOAP_ENC = "soapenc";
033: public static final String NS_PREFIX_SCHEMA_XSI = "xsi";
034: public static final String NS_PREFIX_SCHEMA_XSD = "xsd";
035: public static final String NS_PREFIX_WSDL = "wsdl";
036: public static final String NS_PREFIX_WSDL_SOAP = "wsdlsoap";
037: public static final String NS_PREFIX_XML = "xml";
038: public static final String NS_PREFIX_XOP = "xop";
039:
040: //
041: // SOAP-ENV Namespaces
042: //
043: public static final String URI_SOAP11_ENV = "http://schemas.xmlsoap.org/soap/envelope/";
044: public static final String URI_SOAP12_ENV = "http://www.w3.org/2003/05/soap-envelope";
045:
046: public static final String URI_LITERAL_ENC = "";
047:
048: //
049: // SOAP-ENC Namespaces
050: //
051: public static final String URI_SOAP11_ENC = "http://schemas.xmlsoap.org/soap/encoding/";
052: public static final String URI_SOAP12_ENC = "http://www.w3.org/2003/05/soap-encoding";
053: public static final String URI_SOAP12_NOENC = "http://www.w3.org/2003/05/soap-envelope/encoding/none";
054:
055: // Misc SOAP Namespaces / URIs
056: public static final String URI_SOAP11_NEXT_ACTOR = "http://schemas.xmlsoap.org/soap/actor/next";
057: public static final String URI_SOAP12_NEXT_ROLE = "http://www.w3.org/2003/05/soap-envelope/role/next";
058: /**
059: * @deprecated use URI_SOAP12_NEXT_ROLE
060: */
061: public static final String URI_SOAP12_NEXT_ACTOR = URI_SOAP12_NEXT_ROLE;
062:
063: public static final String URI_SOAP12_RPC = "http://www.w3.org/2003/05/soap-rpc";
064:
065: public static final String URI_SOAP12_NONE_ROLE = "http://www.w3.org/2003/05/soap-envelope/role/none";
066: public static final String URI_SOAP12_ULTIMATE_ROLE = "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver";
067:
068: public static final String URI_SOAP11_HTTP = "http://schemas.xmlsoap.org/soap/http";
069: public static final String URI_SOAP12_HTTP = "http://www.w3.org/2003/05/http";
070:
071: public static final String NS_URI_XMLNS = "http://www.w3.org/2000/xmlns/";
072:
073: public static final String NS_URI_XML = "http://www.w3.org/XML/1998/namespace";
074:
075: //
076: // Schema XSD Namespaces
077: //
078: public static final String URI_1999_SCHEMA_XSD = "http://www.w3.org/1999/XMLSchema";
079: public static final String URI_2000_SCHEMA_XSD = "http://www.w3.org/2000/10/XMLSchema";
080: public static final String URI_2001_SCHEMA_XSD = "http://www.w3.org/2001/XMLSchema";
081:
082: public static final String URI_DEFAULT_SCHEMA_XSD = URI_2001_SCHEMA_XSD;
083:
084: //
085: // Schema XSI Namespaces
086: //
087: public static final String URI_1999_SCHEMA_XSI = "http://www.w3.org/1999/XMLSchema-instance";
088: public static final String URI_2000_SCHEMA_XSI = "http://www.w3.org/2000/10/XMLSchema-instance";
089: public static final String URI_2001_SCHEMA_XSI = "http://www.w3.org/2001/XMLSchema-instance";
090: public static final String URI_DEFAULT_SCHEMA_XSI = URI_2001_SCHEMA_XSI;
091:
092: public static final String URI_POLICY = "http://schemas.xmlsoap.org/ws/2004/09/policy";
093: /**
094: * WSDL Namespace.
095: */
096: public static final String NS_URI_WSDL11 = "http://schemas.xmlsoap.org/wsdl/";
097:
098: public static final String NS_URI_WSDL20 = "http://www.w3.org/2004/03/wsdl";
099:
100: //
101: // WSDL extensions for SOAP in DIME
102: // (http://gotdotnet.com/team/xml_wsspecs/dime/WSDL-Extension-for-DIME.htm)
103: //
104: public static final String URI_DIME_WSDL = "http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/";
105:
106: public static final String URI_DIME_CONTENT = "http://schemas.xmlsoap.org/ws/2002/04/content-type/";
107:
108: public static final String URI_DIME_REFERENCE = "http://schemas.xmlsoap.org/ws/2002/04/reference/";
109:
110: public static final String URI_DIME_CLOSED_LAYOUT = "http://schemas.xmlsoap.org/ws/2002/04/dime/closed-layout";
111:
112: public static final String URI_DIME_OPEN_LAYOUT = "http://schemas.xmlsoap.org/ws/2002/04/dime/open-layout";
113:
114: // XOP/MTOM
115: public static final String URI_XOP_INCLUDE = "http://www.w3.org/2004/08/xop/include";
116: public static final String ELEM_XOP_INCLUDE = "Include";
117:
118: //
119: // WSDL SOAP Namespace
120: //
121: public static final String URI_WSDL11_SOAP = "http://schemas.xmlsoap.org/wsdl/soap/";
122: public static final String URI_WSDL12_SOAP = "http://schemas.xmlsoap.org/wsdl/soap12/";
123:
124: public static final String ELEM_ENVELOPE = "Envelope";
125: public static final String ELEM_HEADER = "Header";
126: public static final String ELEM_BODY = "Body";
127: public static final String ELEM_FAULT = "Fault";
128:
129: public static final String ELEM_NOTUNDERSTOOD = "NotUnderstood";
130: public static final String ELEM_UPGRADE = "Upgrade";
131: public static final String ELEM_SUPPORTEDENVELOPE = "SupportedEnvelope";
132:
133: public static final String ELEM_FAULT_CODE = "faultcode";
134: public static final String ELEM_FAULT_STRING = "faultstring";
135: public static final String ELEM_FAULT_DETAIL = "detail";
136: public static final String ELEM_FAULT_ACTOR = "faultactor";
137:
138: public static final String ELEM_FAULT_CODE_SOAP12 = "Code";
139: public static final String ELEM_FAULT_VALUE_SOAP12 = "Value";
140: public static final String ELEM_FAULT_SUBCODE_SOAP12 = "Subcode";
141: public static final String ELEM_FAULT_REASON_SOAP12 = "Reason";
142: public static final String ELEM_FAULT_NODE_SOAP12 = "Node";
143: public static final String ELEM_FAULT_ROLE_SOAP12 = "Role";
144: public static final String ELEM_FAULT_DETAIL_SOAP12 = "Detail";
145: public static final String ELEM_TEXT_SOAP12 = "Text";
146:
147: public static final String ATTR_MUST_UNDERSTAND = "mustUnderstand";
148: public static final String ATTR_ENCODING_STYLE = "encodingStyle";
149: public static final String ATTR_ACTOR = "actor";
150: public static final String ATTR_ROLE = "role";
151: public static final String ATTR_RELAY = "relay";
152: public static final String ATTR_ROOT = "root";
153: public static final String ATTR_ID = "id";
154: public static final String ATTR_HREF = "href";
155: public static final String ATTR_REF = "ref";
156: public static final String ATTR_QNAME = "qname";
157: public static final String ATTR_ARRAY_TYPE = "arrayType";
158: public static final String ATTR_ITEM_TYPE = "itemType";
159: public static final String ATTR_ARRAY_SIZE = "arraySize";
160: public static final String ATTR_OFFSET = "offset";
161: public static final String ATTR_POSITION = "position";
162: public static final String ATTR_TYPE = "type";
163: public static final String ATTR_HANDLERINFOCHAIN = "handlerInfoChain";
164:
165: // Fault Codes
166: //////////////////////////////////////////////////////////////////////////
167: public static final String FAULT_CLIENT = "Client";
168:
169: public static final String FAULT_SERVER_GENERAL = "Server.generalException";
170:
171: public static final String FAULT_SERVER_USER = "Server.userException";
172:
173: public static final QName FAULT_VERSIONMISMATCH = new QName(
174: URI_SOAP11_ENV, "VersionMismatch");
175:
176: public static final QName FAULT_MUSTUNDERSTAND = new QName(
177: URI_SOAP11_ENV, "MustUnderstand");
178:
179: public static final QName FAULT_SOAP12_MUSTUNDERSTAND = new QName(
180: URI_SOAP12_ENV, "MustUnderstand");
181:
182: public static final QName FAULT_SOAP12_VERSIONMISMATCH = new QName(
183: URI_SOAP12_ENV, "VersionMismatch");
184:
185: public static final QName FAULT_SOAP12_DATAENCODINGUNKNOWN = new QName(
186: URI_SOAP12_ENV, "DataEncodingUnknown");
187:
188: public static final QName FAULT_SOAP12_SENDER = new QName(
189: URI_SOAP12_ENV, "Sender");
190:
191: public static final QName FAULT_SOAP12_RECEIVER = new QName(
192: URI_SOAP12_ENV, "Receiver");
193:
194: // SOAP 1.2 Fault subcodes
195: public static final QName FAULT_SUBCODE_BADARGS = new QName(
196: URI_SOAP12_RPC, "BadArguments");
197: public static final QName FAULT_SUBCODE_PROC_NOT_PRESENT = new QName(
198: URI_SOAP12_RPC, "ProcedureNotPresent");
199:
200: // QNames
201: //////////////////////////////////////////////////////////////////////////
202: public static final QName QNAME_FAULTCODE = new QName("",
203: ELEM_FAULT_CODE);
204: public static final QName QNAME_FAULTSTRING = new QName("",
205: ELEM_FAULT_STRING);
206: public static final QName QNAME_FAULTACTOR = new QName("",
207: ELEM_FAULT_ACTOR);
208: public static final QName QNAME_FAULTDETAILS = new QName("",
209: ELEM_FAULT_DETAIL);
210:
211: public static final QName QNAME_FAULTCODE_SOAP12 = new QName(
212: URI_SOAP12_ENV, ELEM_FAULT_CODE_SOAP12);
213: public static final QName QNAME_FAULTVALUE_SOAP12 = new QName(
214: URI_SOAP12_ENV, ELEM_FAULT_VALUE_SOAP12);
215: public static final QName QNAME_FAULTSUBCODE_SOAP12 = new QName(
216: URI_SOAP12_ENV, ELEM_FAULT_SUBCODE_SOAP12);
217: public static final QName QNAME_FAULTREASON_SOAP12 = new QName(
218: URI_SOAP12_ENV, ELEM_FAULT_REASON_SOAP12);
219: public static final QName QNAME_TEXT_SOAP12 = new QName(
220: URI_SOAP12_ENV, ELEM_TEXT_SOAP12);
221:
222: public static final QName QNAME_FAULTNODE_SOAP12 = new QName(
223: URI_SOAP12_ENV, ELEM_FAULT_NODE_SOAP12);
224: public static final QName QNAME_FAULTROLE_SOAP12 = new QName(
225: URI_SOAP12_ENV, ELEM_FAULT_ROLE_SOAP12);
226: public static final QName QNAME_FAULTDETAIL_SOAP12 = new QName(
227: URI_SOAP12_ENV, ELEM_FAULT_DETAIL_SOAP12);
228: public static final QName QNAME_NOTUNDERSTOOD = new QName(
229: URI_SOAP12_ENV, ELEM_NOTUNDERSTOOD);
230:
231: // Define qnames for the all of the XSD and SOAP-ENC encodings
232: public static final QName XSD_STRING = new QName(
233: URI_DEFAULT_SCHEMA_XSD, "string");
234: public static final QName XSD_BOOLEAN = new QName(
235: URI_DEFAULT_SCHEMA_XSD, "boolean");
236: public static final QName XSD_DOUBLE = new QName(
237: URI_DEFAULT_SCHEMA_XSD, "double");
238: public static final QName XSD_FLOAT = new QName(
239: URI_DEFAULT_SCHEMA_XSD, "float");
240: public static final QName XSD_INT = new QName(
241: URI_DEFAULT_SCHEMA_XSD, "int");
242: public static final QName XSD_INTEGER = new QName(
243: URI_DEFAULT_SCHEMA_XSD, "integer");
244: public static final QName XSD_LONG = new QName(
245: URI_DEFAULT_SCHEMA_XSD, "long");
246: public static final QName XSD_SHORT = new QName(
247: URI_DEFAULT_SCHEMA_XSD, "short");
248: public static final QName XSD_BYTE = new QName(
249: URI_DEFAULT_SCHEMA_XSD, "byte");
250: public static final QName XSD_DECIMAL = new QName(
251: URI_DEFAULT_SCHEMA_XSD, "decimal");
252: public static final QName XSD_BASE64 = new QName(
253: URI_DEFAULT_SCHEMA_XSD, "base64Binary");
254: public static final QName XSD_HEXBIN = new QName(
255: URI_DEFAULT_SCHEMA_XSD, "hexBinary");
256: public static final QName XSD_ANYSIMPLETYPE = new QName(
257: URI_DEFAULT_SCHEMA_XSD, "anySimpleType");
258: public static final QName XSD_ANYTYPE = new QName(
259: URI_DEFAULT_SCHEMA_XSD, "anyType");
260: public static final QName XSD_ANY = new QName(
261: URI_DEFAULT_SCHEMA_XSD, "any");
262: public static final QName AXIS2_NONE = new QName(
263: "http://org.apache.axis2", "none");
264: public static final QName XSD_QNAME = new QName(
265: URI_DEFAULT_SCHEMA_XSD, "QName");
266: public static final QName XSD_DATETIME = new QName(
267: URI_DEFAULT_SCHEMA_XSD, "dateTime");
268: public static final QName XSD_DATE = new QName(
269: URI_DEFAULT_SCHEMA_XSD, "date");
270: public static final QName XSD_TIME = new QName(
271: URI_DEFAULT_SCHEMA_XSD, "time");
272: public static final QName XSD_TIMEINSTANT1999 = new QName(
273: URI_1999_SCHEMA_XSD, "timeInstant");
274: public static final QName XSD_TIMEINSTANT2000 = new QName(
275: URI_2000_SCHEMA_XSD, "timeInstant");
276:
277: public static final QName XSD_NORMALIZEDSTRING = new QName(
278: URI_2001_SCHEMA_XSD, "normalizedString");
279: public static final QName XSD_TOKEN = new QName(
280: URI_2001_SCHEMA_XSD, "token");
281:
282: public static final QName XSD_UNSIGNEDLONG = new QName(
283: URI_2001_SCHEMA_XSD, "unsignedLong");
284: public static final QName XSD_UNSIGNEDINT = new QName(
285: URI_2001_SCHEMA_XSD, "unsignedInt");
286: public static final QName XSD_UNSIGNEDSHORT = new QName(
287: URI_2001_SCHEMA_XSD, "unsignedShort");
288: public static final QName XSD_UNSIGNEDBYTE = new QName(
289: URI_2001_SCHEMA_XSD, "unsignedByte");
290: public static final QName XSD_POSITIVEINTEGER = new QName(
291: URI_2001_SCHEMA_XSD, "positiveInteger");
292: public static final QName XSD_NEGATIVEINTEGER = new QName(
293: URI_2001_SCHEMA_XSD, "negativeInteger");
294: public static final QName XSD_NONNEGATIVEINTEGER = new QName(
295: URI_2001_SCHEMA_XSD, "nonNegativeInteger");
296: public static final QName XSD_NONPOSITIVEINTEGER = new QName(
297: URI_2001_SCHEMA_XSD, "nonPositiveInteger");
298:
299: public static final QName XSD_YEARMONTH = new QName(
300: URI_2001_SCHEMA_XSD, "gYearMonth");
301: public static final QName XSD_MONTHDAY = new QName(
302: URI_2001_SCHEMA_XSD, "gMonthDay");
303: public static final QName XSD_YEAR = new QName(URI_2001_SCHEMA_XSD,
304: "gYear");
305: public static final QName XSD_MONTH = new QName(
306: URI_2001_SCHEMA_XSD, "gMonth");
307: public static final QName XSD_DAY = new QName(URI_2001_SCHEMA_XSD,
308: "gDay");
309: public static final QName XSD_DURATION = new QName(
310: URI_2001_SCHEMA_XSD, "duration");
311:
312: public static final QName XSD_NAME = new QName(URI_2001_SCHEMA_XSD,
313: "Name");
314: public static final QName XSD_NCNAME = new QName(
315: URI_2001_SCHEMA_XSD, "NCName");
316: public static final QName XSD_NMTOKEN = new QName(
317: URI_2001_SCHEMA_XSD, "NMTOKEN");
318: public static final QName XSD_NMTOKENS = new QName(
319: URI_2001_SCHEMA_XSD, "NMTOKENS");
320: public static final QName XSD_NOTATION = new QName(
321: URI_2001_SCHEMA_XSD, "NOTATION");
322: public static final QName XSD_ENTITY = new QName(
323: URI_2001_SCHEMA_XSD, "ENTITY");
324: public static final QName XSD_ENTITIES = new QName(
325: URI_2001_SCHEMA_XSD, "ENTITIES");
326: public static final QName XSD_IDREF = new QName(
327: URI_2001_SCHEMA_XSD, "IDREF");
328: public static final QName XSD_IDREFS = new QName(
329: URI_2001_SCHEMA_XSD, "IDREFS");
330: public static final QName XSD_ANYURI = new QName(
331: URI_2001_SCHEMA_XSD, "anyURI");
332: public static final QName XSD_LANGUAGE = new QName(
333: URI_2001_SCHEMA_XSD, "language");
334: public static final QName XSD_ID = new QName(URI_2001_SCHEMA_XSD,
335: "ID");
336: public static final QName XSD_SCHEMA = new QName(
337: URI_2001_SCHEMA_XSD, "schema");
338:
339: public static final QName XML_LANG = new QName(NS_URI_XML, "lang");
340:
341: public static final QName SOAP_BASE64 = new QName(URI_SOAP11_ENC,
342: "base64");
343: public static final QName SOAP_BASE64BINARY = new QName(
344: URI_SOAP11_ENC, "base64Binary");
345: public static final QName SOAP_STRING = new QName(URI_SOAP11_ENC,
346: "string");
347: public static final QName SOAP_BOOLEAN = new QName(URI_SOAP11_ENC,
348: "boolean");
349: public static final QName SOAP_DOUBLE = new QName(URI_SOAP11_ENC,
350: "double");
351: public static final QName SOAP_FLOAT = new QName(URI_SOAP11_ENC,
352: "float");
353: public static final QName SOAP_INT = new QName(URI_SOAP11_ENC,
354: "int");
355: public static final QName SOAP_LONG = new QName(URI_SOAP11_ENC,
356: "long");
357: public static final QName SOAP_SHORT = new QName(URI_SOAP11_ENC,
358: "short");
359: public static final QName SOAP_BYTE = new QName(URI_SOAP11_ENC,
360: "byte");
361: public static final QName SOAP_INTEGER = new QName(URI_SOAP11_ENC,
362: "integer");
363: public static final QName SOAP_DECIMAL = new QName(URI_SOAP11_ENC,
364: "decimal");
365: public static final QName SOAP_ARRAY = new QName(URI_SOAP11_ENC,
366: "Array");
367: public static final QName SOAP_COMMON_ATTRS11 = new QName(
368: URI_SOAP11_ENC, "commonAttributes");
369: public static final QName SOAP_COMMON_ATTRS12 = new QName(
370: URI_SOAP12_ENC, "commonAttributes");
371: public static final QName SOAP_ARRAY_ATTRS11 = new QName(
372: URI_SOAP11_ENC, "arrayAttributes");
373: public static final QName SOAP_ARRAY_ATTRS12 = new QName(
374: URI_SOAP12_ENC, "arrayAttributes");
375: public static final QName SOAP_ARRAY12 = new QName(URI_SOAP12_ENC,
376: "Array");
377:
378: public static final QName QNAME_LITERAL_ITEM = new QName(
379: URI_LITERAL_ENC, "item");
380: public static final QName QNAME_RPC_RESULT = new QName(
381: URI_SOAP12_RPC, "result");
382:
383: public static final String MIME_CT_APPLICATION_OCTETSTREAM = "application/octet-stream";
384: public static final String MIME_CT_TEXT_PLAIN = "text/plain";
385: public static final String MIME_CT_IMAGE_JPEG = "image/jpeg";
386: public static final String MIME_CT_IMAGE_GIF = "image/gif";
387: public static final String MIME_CT_TEXT_XML = "text/xml";
388: public static final String MIME_CT_APPLICATION_XML = "application/xml";
389: public static final String MIME_CT_MULTIPART_PREFIX = "multipart/";
390:
391: public static final QName BASE_64_CONTENT_QNAME = new QName(
392: URI_2001_SCHEMA_XSD, "base64Binary");
393: public static final QName XMIME_CONTENT_TYPE_QNAME = new QName(
394: "http://www.w3.org/2004/06/xmlmime", "contentType");
395: public static final String URI_SECURITYPOLICY = "http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";
396: }
|