⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 soap12constants.java

📁 Java有关XML编程需要用到axis 的源代码 把里面bin下的包导入相应的Java工程 进行使用
💻 JAVA
字号:
/* * Copyright 2002-2004 The Apache Software Foundation. *  * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *  *      http://www.apache.org/licenses/LICENSE-2.0 *  * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package org.apache.axis.soap;import org.apache.axis.Constants;import javax.xml.namespace.QName;/** * SOAP 1.2 constants * * @author Glen Daniels (gdaniels@apache.org) * @author Andras Avar (andras.avar@nokia.com) */public class SOAP12Constants implements SOAPConstants {    private static QName headerQName = new QName(Constants.URI_SOAP12_ENV,                                                 Constants.ELEM_HEADER);    private static QName bodyQName = new QName(Constants.URI_SOAP12_ENV,                                               Constants.ELEM_BODY);    private static QName faultQName = new QName(Constants.URI_SOAP12_ENV,                                                Constants.ELEM_FAULT);    private static QName roleQName = new QName(Constants.URI_SOAP12_ENV,                                                Constants.ATTR_ROLE);        // Public constants for SOAP 1.2        /** MessageContext property name for webmethod */    public static final String PROP_WEBMETHOD = "soap12.webmethod";    public String getEnvelopeURI() {        return Constants.URI_SOAP12_ENV;    }    public String getEncodingURI() {        return Constants.URI_SOAP12_ENC;    }    public QName getHeaderQName() {        return headerQName;    }    public QName getBodyQName() {        return bodyQName;    }    public QName getFaultQName() {        return faultQName;    }    /**     * Obtain the QName for the role attribute (actor/role)     */    public QName getRoleAttributeQName() {        return roleQName;    }    /**     * Obtain the MIME content type     */    public String getContentType() {        return "application/soap+xml";    }    /**     * Obtain the "next" role/actor URI     */    public String getNextRoleURI() {        return Constants.URI_SOAP12_NEXT_ROLE;    }    /**     * Obtain the ref attribute name     */    public String getAttrHref() {        return Constants.ATTR_REF;    }    /**     * Obtain the item type name of an array     */    public String getAttrItemType() {        return Constants.ATTR_ITEM_TYPE;    }    /**     * Obtain the Qname of VersionMismatch fault code     */    public QName getVerMismatchFaultCodeQName() {        return Constants.FAULT_SOAP12_VERSIONMISMATCH;    }    /**     * Obtain the Qname of Mustunderstand fault code     */    public QName getMustunderstandFaultQName() {        return Constants.FAULT_SOAP12_MUSTUNDERSTAND;    }    /**     * Obtain the QName of the SOAP array type     */    public QName getArrayType() {        return Constants.SOAP_ARRAY12;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -