001: /*
002: * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
003: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004: *
005: * This code is free software; you can redistribute it and/or modify it
006: * under the terms of the GNU General Public License version 2 only, as
007: * published by the Free Software Foundation. Sun designates this
008: * particular file as subject to the "Classpath" exception as provided
009: * by Sun in the LICENSE file that accompanied this code.
010: *
011: * This code is distributed in the hope that it will be useful, but WITHOUT
012: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
014: * version 2 for more details (a copy is included in the LICENSE file that
015: * accompanied this code).
016: *
017: * You should have received a copy of the GNU General Public License version
018: * 2 along with this work; if not, write to the Free Software Foundation,
019: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020: *
021: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
022: * CA 95054 USA or visit www.sun.com if you need additional information or
023: * have any questions.
024: */
025: package com.sun.xml.internal.ws.encoding.soap;
026:
027: import javax.xml.namespace.QName;
028:
029: import com.sun.xml.internal.ws.encoding.soap.streaming.SOAP12NamespaceConstants;
030:
031: /**
032: *
033: * @author WS Development Team
034: */
035: public class SOAP12Constants {
036:
037: public static final String URI_ENVELOPE = SOAP12NamespaceConstants.ENVELOPE;
038: public static final String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
039: public static final String URI_HTTP = SOAP12NamespaceConstants.TRANSPORT_HTTP;
040: public static final String URI_SOAP_RPC = SOAP12NamespaceConstants.SOAP_RPC;
041:
042: public static final QName QNAME_SOAP_RPC = new QName(URI_SOAP_RPC,
043: "rpc");
044: public static final QName QNAME_SOAP_RESULT = new QName(
045: URI_SOAP_RPC, "result");
046:
047: public static final QName QNAME_SOAP_ENVELOPE = new QName(
048: URI_ENVELOPE, "Envelope");
049: public static final QName QNAME_SOAP_BODY = new QName(URI_ENVELOPE,
050: "Body");
051: public static final QName QNAME_SOAP_HEADER = new QName(
052: URI_ENVELOPE, "Header");
053: public static final QName QNAME_ENVELOPE_ENCODINGSTYLE = new QName(
054: URI_ENVELOPE, "encodingStyle");
055: public static final QName QNAME_SOAP_FAULT = new QName(
056: URI_ENVELOPE, "Fault");
057: public static final QName QNAME_MUSTUNDERSTAND = new QName(
058: URI_ENVELOPE, "mustUnderstand");
059: public static final QName QNAME_ROLE = new QName(URI_ENVELOPE,
060: "role");
061:
062: public static final QName QNAME_NOT_UNDERSTOOD = new QName(
063: URI_ENVELOPE, "NotUnderstood");
064:
065: //fault
066: public static final QName QNAME_FAULT_CODE = new QName(
067: URI_ENVELOPE, "Code");
068: public static final QName QNAME_FAULT_SUBCODE = new QName(
069: URI_ENVELOPE, "Subcode");
070: public static final QName QNAME_FAULT_VALUE = new QName(
071: URI_ENVELOPE, "Value");
072: public static final QName QNAME_FAULT_REASON = new QName(
073: URI_ENVELOPE, "Reason");
074: public static final QName QNAME_FAULT_NODE = new QName(
075: URI_ENVELOPE, "Node");
076: public static final QName QNAME_FAULT_ROLE = new QName(
077: URI_ENVELOPE, "Role");
078: public static final QName QNAME_FAULT_DETAIL = new QName(
079: URI_ENVELOPE, "Detail");
080: public static final QName QNAME_FAULT_REASON_TEXT = new QName(
081: URI_ENVELOPE, "Text");
082: public final static QName QNAME_UPGRADE = new QName(URI_ENVELOPE,
083: "Upgrade");
084: public final static QName QNAME_UPGRADE_SUPPORTED_ENVELOPE = new QName(
085: URI_ENVELOPE, "SupportedEnvelope");
086:
087: //fault codes
088: public final static QName FAULT_CODE_CLIENT = new QName(
089: URI_ENVELOPE, "Sender");
090: public final static QName FAULT_CODE_SERVER = new QName(
091: URI_ENVELOPE, "Receiver");
092: public final static QName FAULT_CODE_MUST_UNDERSTAND = new QName(
093: URI_ENVELOPE, "MustUnderstand");
094: public final static QName FAULT_CODE_MISUNDERSTOOD = new QName(
095: URI_ENVELOPE, "Misunderstood");
096: public final static QName FAULT_CODE_VERSION_MISMATCH = new QName(
097: URI_ENVELOPE, "VersionMismatch");
098: public final static QName FAULT_CODE_DATA_ENCODING_UNKNOWN = new QName(
099: URI_ENVELOPE, "DataEncodingUnknown");
100: public final static QName FAULT_CODE_PROCEDURE_NOT_PRESENT = new QName(
101: URI_ENVELOPE, "ProcedureNotPresent");
102: public final static QName FAULT_CODE_BAD_ARGUMENTS = new QName(
103: URI_ENVELOPE, "BadArguments");
104: }
|