001: package org.objectweb.celtix.tools.common;
002:
003: import javax.xml.namespace.QName;
004:
005: public final class WSDLConstants {
006:
007: public static final String DOT_WSDL = ".wsdl";
008: public static final String RESPONSE = "Response";
009: public static final String PARAMETERS = "parameters";
010: public static final String RESULT = "parameters";
011: public static final String UNWRAPPABLE_RESULT = "result";
012:
013: public static final String WSDL_PREFIX = "wsdl";
014: public static final String XSD_NAMESPACE = "http://www.w3.org/2001/XMLSchema";
015: public static final String XSD_PREFIX = "xsd";
016: public static final String SOAP11_NAMESPACE = "http://schemas.xmlsoap.org/wsdl/soap/";
017: public static final String SOAP12_NAMESPACE = "http://schemas.xmlsoap.org/wsdl/soap12/";
018: public static final String SOAP_PREFIX = "soap";
019: public static final String SOAP12_PREFIX = "soap12";
020: public static final String JMS_PREFIX = "jms";
021: public static final String TNS_PREFIX = "tns";
022:
023: public static final String BINDING = "Binding";
024: public static final String SOAP_HTTP_TRANSPORT = "http://schemas.xmlsoap.org/soap/http";
025: public static final String SOAP12_HTTP_TRANSPORT = "http://schemas.xmlsoap.org/soap12/http";
026:
027: public static final String DOCUMENT = "document";
028: public static final String RPC = "rpc";
029: public static final String LITERAL = "literal";
030: public static final String REPLACE_WITH_ACTUAL_URL = "REPLACE_WITH_ACTUAL_URL";
031:
032: public static final String NS_XMLNS = "http://www.w3.org/2001/XMLSchema";
033: public static final String NS_WSDL = "http://schemas.xmlsoap.org/wsdl/";
034: public static final String NS_SOAP11_HTTP_BINDING = "http://schemas.xmlsoap.org/soap/http";
035:
036: public static final String ATTR_TRANSPORT = "transport";
037: public static final String ATTR_LOCATION = "location";
038: public static final String ATTR_NAME = "name";
039: public static final String ATTR_TNS = "targetNamespace";
040:
041: public static final QName QNAME_SCHEMA = new QName(NS_XMLNS,
042: "schema");
043:
044: public static final QName QNAME_BINDING = new QName(NS_WSDL,
045: "binding");
046: public static final QName QNAME_DEFINITIONS = new QName(NS_WSDL,
047: "definitions");
048: public static final QName QNAME_DOCUMENTATION = new QName(NS_WSDL,
049: "documentation");
050: public static final QName NS_SOAP_BINDING_ADDRESS = new QName(
051: "http://schemas.xmlsoap.org/wsdl/soap/", "address");
052: public static final QName NS_XMLHTTP_BINDING_ADDRESS = new QName(
053: "http://schemas.xmlsoap.org/wsdl/http/", "address");
054: public static final QName NS_SOAP_BINDING = new QName(
055: "http://schemas.xmlsoap.org/wsdl/soap/", "binding");
056: public static final QName NS_SOAP_OPERATION = new QName(
057: "http://schemas.xmlsoap.org/wsdl/soap/", "operation");
058: public static final QName NS_SOAP_BODY = new QName(
059: "http://schemas.xmlsoap.org/wsdl/soap/", "body");
060: public static final QName NS_SOAP_FAULT = new QName(
061: "http://schemas.xmlsoap.org/wsdl/soap/", "fault");
062:
063: public static final QName NS_SOAP12_BINDING = new QName(
064: "http://schemas.xmlsoap.org/wsdl/soap12/", "binding");
065: public static final QName NS_SOAP12_BINDING_ADDRESS = new QName(
066: "http://schemas.xmlsoap.org/wsdl/soap12/", "address");
067:
068: public static final QName QNAME_IMPORT = new QName(NS_WSDL,
069: "import");
070: public static final QName QNAME_MESSAGE = new QName(NS_WSDL,
071: "message");
072: public static final QName QNAME_PART = new QName(NS_WSDL, "part");
073: public static final QName QNAME_OPERATION = new QName(NS_WSDL,
074: "operation");
075: public static final QName QNAME_INPUT = new QName(NS_WSDL, "input");
076: public static final QName QNAME_OUTPUT = new QName(NS_WSDL,
077: "output");
078:
079: public static final QName QNAME_PORT = new QName(NS_WSDL, "port");
080: public static final QName QNAME_ADDRESS = new QName(NS_WSDL,
081: "address");
082: public static final QName QNAME_PORT_TYPE = new QName(NS_WSDL,
083: "portType");
084: public static final QName QNAME_FAULT = new QName(NS_WSDL, "fault");
085: public static final QName QNAME_SERVICE = new QName(NS_WSDL,
086: "service");
087: public static final QName QNAME_TYPES = new QName(NS_WSDL, "types");
088:
089: // WSDL Validation
090: public static final String ATTR_PART_ELEMENT = "element";
091: public static final String ATTR_PART_TYPE = "type";
092: public static final String ATTR_TYPE = "type";
093: //For LineNumDOMParser getUserData(location)
094: public static final String NODE_LOCATION = "location";
095:
096: public static final int DOC_WRAPPED = 1;
097: public static final int DOC_BARE = 2;
098: public static final int RPC_WRAPPED = 3;
099: public static final int ERORR_STYLE_USE = -1;
100:
101: }
|