001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common Development
008: * and Distribution License("CDDL") (collectively, the "License"). You
009: * may not use this file except in compliance with the License. You can obtain
010: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
011: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
012: * language governing permissions and limitations under the License.
013: *
014: * When distributing the software, include this License Header Notice in each
015: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
016: * Sun designates this particular file as subject to the "Classpath" exception
017: * as provided by Sun in the GPL Version 2 section of the License file that
018: * accompanied this code. If applicable, add the following below the License
019: * Header, with the fields enclosed by brackets [] replaced by your own
020: * identifying information: "Portions Copyrighted [year]
021: * [name of copyright owner]"
022: *
023: * Contributor(s):
024: *
025: * If you wish your version of this file to be governed by only the CDDL or
026: * only the GPL Version 2, indicate your decision by adding "[Contributor]
027: * elects to include this software in this distribution under the [CDDL or GPL
028: * Version 2] license." If you don't indicate a single choice of license, a
029: * recipient has the option to distribute your version of this file under
030: * either the CDDL, the GPL Version 2 or to extend the choice of license to
031: * its licensees as provided above. However, if you add GPL Version 2 code
032: * and therefore, elected the GPL Version 2 license, then the option applies
033: * only if the new code is made subject to such option by the copyright
034: * holder.
035: */
036: package com.sun.xml.ws.encoding.soap;
037:
038: import com.sun.xml.ws.encoding.soap.streaming.SOAP12NamespaceConstants;
039:
040: import javax.xml.namespace.QName;
041:
042: /**
043: *
044: * @author WS Development Team
045: */
046: public class SOAP12Constants {
047:
048: public static final String URI_ENVELOPE = SOAP12NamespaceConstants.ENVELOPE;
049: public static final String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
050: public static final String URI_HTTP = SOAP12NamespaceConstants.TRANSPORT_HTTP;
051: public static final String URI_SOAP_RPC = SOAP12NamespaceConstants.SOAP_RPC;
052:
053: public static final QName QNAME_SOAP_RPC = new QName(URI_SOAP_RPC,
054: "rpc");
055: public static final QName QNAME_SOAP_RESULT = new QName(
056: URI_SOAP_RPC, "result");
057:
058: public static final QName QNAME_SOAP_ENVELOPE = new QName(
059: URI_ENVELOPE, "Envelope");
060: public static final QName QNAME_SOAP_BODY = new QName(URI_ENVELOPE,
061: "Body");
062: public static final QName QNAME_SOAP_HEADER = new QName(
063: URI_ENVELOPE, "Header");
064: public static final QName QNAME_ENVELOPE_ENCODINGSTYLE = new QName(
065: URI_ENVELOPE, "encodingStyle");
066: public static final QName QNAME_SOAP_FAULT = new QName(
067: URI_ENVELOPE, "Fault");
068: public static final QName QNAME_MUSTUNDERSTAND = new QName(
069: URI_ENVELOPE, "mustUnderstand");
070: public static final QName QNAME_ROLE = new QName(URI_ENVELOPE,
071: "role");
072:
073: public static final QName QNAME_NOT_UNDERSTOOD = new QName(
074: URI_ENVELOPE, "NotUnderstood");
075:
076: //fault
077: public static final QName QNAME_FAULT_CODE = new QName(
078: URI_ENVELOPE, "Code");
079: public static final QName QNAME_FAULT_SUBCODE = new QName(
080: URI_ENVELOPE, "Subcode");
081: public static final QName QNAME_FAULT_VALUE = new QName(
082: URI_ENVELOPE, "Value");
083: public static final QName QNAME_FAULT_REASON = new QName(
084: URI_ENVELOPE, "Reason");
085: public static final QName QNAME_FAULT_NODE = new QName(
086: URI_ENVELOPE, "Node");
087: public static final QName QNAME_FAULT_ROLE = new QName(
088: URI_ENVELOPE, "Role");
089: public static final QName QNAME_FAULT_DETAIL = new QName(
090: URI_ENVELOPE, "Detail");
091: public static final QName QNAME_FAULT_REASON_TEXT = new QName(
092: URI_ENVELOPE, "Text");
093: public final static QName QNAME_UPGRADE = new QName(URI_ENVELOPE,
094: "Upgrade");
095: public final static QName QNAME_UPGRADE_SUPPORTED_ENVELOPE = new QName(
096: URI_ENVELOPE, "SupportedEnvelope");
097:
098: //fault codes
099: public final static QName FAULT_CODE_MUST_UNDERSTAND = new QName(
100: URI_ENVELOPE, "MustUnderstand");
101: public final static QName FAULT_CODE_MISUNDERSTOOD = new QName(
102: URI_ENVELOPE, "Misunderstood");
103: public final static QName FAULT_CODE_VERSION_MISMATCH = new QName(
104: URI_ENVELOPE, "VersionMismatch");
105: public final static QName FAULT_CODE_DATA_ENCODING_UNKNOWN = new QName(
106: URI_ENVELOPE, "DataEncodingUnknown");
107: public final static QName FAULT_CODE_PROCEDURE_NOT_PRESENT = new QName(
108: URI_ENVELOPE, "ProcedureNotPresent");
109: public final static QName FAULT_CODE_BAD_ARGUMENTS = new QName(
110: URI_ENVELOPE, "BadArguments");
111: }
|