1 /* 2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package com.sun.xml.internal.ws.wsdl.parser; 27 28 import javax.xml.namespace.QName; 29 30 31 /** 32 * Interface defining WSDL-related constants. 33 * 34 * @author WS Development Team 35 */ 36 public interface WSDLConstants { 37 // namespace URIs 38 static final String PREFIX_NS_WSDL = "wsdl"; 39 static final String NS_XMLNS = "http://www.w3.org/2001/XMLSchema"; 40 static final String NS_WSDL = "http://schemas.xmlsoap.org/wsdl/"; 41 static final String NS_SOAP11_HTTP_BINDING = "http://schemas.xmlsoap.org/soap/http"; 42 43 static final QName QNAME_SCHEMA = new QName(NS_XMLNS, "schema"); 44 45 // QNames 46 static final QName QNAME_BINDING = new QName(NS_WSDL, "binding"); 47 static final QName QNAME_DEFINITIONS = new QName(NS_WSDL, "definitions"); 48 static final QName QNAME_DOCUMENTATION = new QName(NS_WSDL, "documentation"); 49 static final QName NS_SOAP_BINDING_ADDRESS = new QName("http://schemas.xmlsoap.org/wsdl/soap/", "address"); 50 static final QName NS_SOAP_BINDING = new QName("http://schemas.xmlsoap.org/wsdl/soap/", "binding"); 51 static final QName NS_SOAP12_BINDING = new QName("http://schemas.xmlsoap.org/wsdl/soap12/", "binding"); 52 static final QName NS_SOAP12_BINDING_ADDRESS = new QName("http://schemas.xmlsoap.org/wsdl/soap12/", "address"); 53 54 //static final QName QNAME_FAULT = new QName(NS_WSDL, "fault"); 55 static final QName QNAME_IMPORT = new QName(NS_WSDL, "import"); 56 57 //static final QName QNAME_INPUT = new QName(NS_WSDL, "input"); 58 static final QName QNAME_MESSAGE = new QName(NS_WSDL, "message"); 59 static final QName QNAME_PART = new QName(NS_WSDL, "part"); 60 static final QName QNAME_OPERATION = new QName(NS_WSDL, "operation"); 61 static final QName QNAME_INPUT = new QName(NS_WSDL, "input"); 62 static final QName QNAME_OUTPUT = new QName(NS_WSDL, "output"); 63 64 //static final QName QNAME_OUTPUT = new QName(NS_WSDL, "output"); 65 //static final QName QNAME_PART = new QName(NS_WSDL, "part"); 66 static final QName QNAME_PORT = new QName(NS_WSDL, "port"); 67 static final QName QNAME_ADDRESS = new QName(NS_WSDL, "address"); 68 static final QName QNAME_PORT_TYPE = new QName(NS_WSDL, "portType"); 69 static final QName QNAME_FAULT = new QName(NS_WSDL, "fault"); 70 static final QName QNAME_SERVICE = new QName(NS_WSDL, "service"); 71 static final QName QNAME_TYPES = new QName(NS_WSDL, "types"); 72 73 static final String ATTR_TRANSPORT = "transport"; 74 static final String ATTR_LOCATION = "location"; 75 static final String ATTR_NAME = "name"; 76 static final String ATTR_TNS = "targetNamespace"; 77 78 //static final QName QNAME_ATTR_ARRAY_TYPE = new QName(NS_WSDL, "arrayType"); 79 } 80