001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one
003: * or more contributor license agreements. See the NOTICE file
004: * distributed with this work for additional information
005: * regarding copyright ownership. The ASF licenses this file
006: * to you under the Apache License, Version 2.0 (the
007: * "License"); you may not use this file except in compliance
008: * with the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing,
013: * software distributed under the License is distributed on an
014: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015: * KIND, either express or implied. See the License for the
016: * specific language governing permissions and limitations
017: * under the License.
018: */
019: package org.apache.axis2.wsdl;
020:
021: import org.apache.axis2.namespace.Constants;
022:
023: import javax.xml.namespace.QName;
024:
025: public interface WSDLConstants {
026:
027: String WSDL_1_1_STYLE = "style";
028:
029: String STYLE_RPC = "rpc";
030: String STYLE_DOC = "document";
031: String STYLE_MSG = "msg";
032:
033: String WSDL_4_J_DEFINITION = "wsdl4jDefinition";
034: String WSDL_20_DESCRIPTION = "WSDL20Description";
035: /**
036: * Field WSDL2_0_NAMESPACE
037: */
038: public static final String WSDL2_0_NAMESPACE = Constants.NS_URI_WSDL20;
039:
040: /**
041: * Field WSDL1_1_NAMESPACE
042: */
043: public static final String WSDL1_1_NAMESPACE = Constants.NS_URI_WSDL11;
044:
045: /**
046: * Field WSDL_MESSAGE_DIRECTION_IN
047: */
048: public static final String WSDL_MESSAGE_DIRECTION_IN = "in";
049:
050: public static final String WSDL_MESSAGE_IN_MESSAGE = "inMessage";
051:
052: public static final String WSDL_MESSAGE_OUT_MESSAGE = "outMessage";
053:
054: public static final String SOAP_HEADER = "soap_header";
055:
056: public static final String HTTP_HEADER = "http_header";
057:
058: /**
059: * Field WSDL_MESSAGE_DIRECTION_OUT
060: */
061: public static final String WSDL_MESSAGE_DIRECTION_OUT = "out";
062:
063: //////////////////////////////////////////////////
064: //////////////// Message Labels///////////////////
065: //////////////////////////////////////////////////
066:
067: /**
068: * Constant to represent the message label "In" which is used by the
069: * following WSDL 2.0 defined MEPs: In-Only, Robust In-Only, In-Out,
070: * In-Optional-Out, Out-In, Out-Optional-In.
071: */
072: public static final byte MESSAGE_LABEL_IN = 0;
073:
074: public static final String MESSAGE_LABEL_IN_VALUE = "In";
075: public static final String MESSAGE_LABEL_FAULT_VALUE = "Fault";
076:
077: /**
078: * Constant to represent the message label "Out" which is used by the
079: * following WSDL 2.0 defined MEPs: In-Out, In-Optional-Out, Out-Only,
080: * Robust Out-Only, Out-In, Out-Optional-In.
081: */
082: public static final int MESSAGE_LABEL_OUT = 1;
083:
084: public static final String MESSAGE_LABEL_OUT_VALUE = "Out";
085:
086: /**
087: *
088: */
089: public static final String WSDL_USE_LITERAL = "literal";
090: public static final String WSDL_USE_ENCODED = "encoded";
091:
092: int WSDL_1_1 = 1;
093: int WSDL_2_0 = 2;
094: String INPUT_PART_QNAME_SUFFIX = "_input";
095: String OUTPUT_PART_QNAME_SUFFIX = "_output";
096:
097: public static interface WSDL11Constants {
098:
099: /**
100: * The Type name for the SOAP Address defined in the Port/Endpoint
101: */
102: QName SOAP_11_ADDRESS = new QName(Constants.URI_WSDL11_SOAP,
103: "address");
104: QName SOAP_12_ADDRESS = new QName(Constants.URI_WSDL12_SOAP,
105: "address");
106: QName SOAP_11_OPERATION = new QName(Constants.URI_WSDL11_SOAP,
107: "operation");
108: QName SOAP_12_OPERATION = new QName(Constants.URI_WSDL12_SOAP,
109: "operation");
110: QName SCHEMA = new QName(Constants.URI_2001_SCHEMA_XSD,
111: "schema");
112: QName SOAP_11_BODY = new QName(Constants.URI_WSDL11_SOAP,
113: "body");
114: QName SOAP_12_BODY = new QName(Constants.URI_WSDL12_SOAP,
115: "body");
116: QName SOAP_11_HEADER = new QName(Constants.URI_WSDL11_SOAP,
117: "header");
118: QName SOAP_12_HEADER = new QName(Constants.URI_WSDL12_SOAP,
119: "header");
120: QName SOAP_11_BINDING = new QName(Constants.URI_WSDL11_SOAP,
121: "binding");
122: QName SOAP_12_BINDING = new QName(Constants.URI_WSDL12_SOAP,
123: "binding");
124: QName POLICY = new QName(Constants.URI_POLICY, "Policy");
125: QName POLICY_REFERENCE = new QName(Constants.URI_POLICY,
126: "PolicyReference");
127: }
128:
129: public static final int MEP_CONSTANT_OUT_IN = 16;
130: public static final int MEP_CONSTANT_OUT_ONLY = 14;
131: public static final int MEP_CONSTANT_IN_ONLY = 10;
132: public static final int MEP_CONSTANT_ROBUST_IN_ONLY = 11;
133: public static final int MEP_CONSTANT_IN_OUT = 12;
134: public static final int MEP_CONSTANT_IN_OPTIONAL_OUT = 13;
135: int MEP_CONSTANT_OUT_OPTIONAL_IN = 17;
136: int MEP_CONSTANT_INVALID = -1;
137: int MEP_CONSTANT_ROBUST_OUT_ONLY = 15;
138:
139: public static interface WSDL20_2006Constants {
140:
141: /**
142: * http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327/#in-only
143: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_IN_ONLY
144: */
145: public String MEP_URI_IN_ONLY = "http://www.w3.org/2006/01/wsdl/in-only";
146: /**
147: * http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327/#robust-in-only
148: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_ROBUST_IN_ONLY
149: */
150: public String MEP_URI_ROBUST_IN_ONLY = "http://www.w3.org/2006/01/wsdl/robust-in-only";
151: /**
152: * http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327/#in-out
153: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_IN_OUT
154: */
155: public String MEP_URI_IN_OUT = "http://www.w3.org/2006/01/wsdl/in-out";
156: /**
157: * http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327/#in-opt-out
158: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_IN_OPTIONAL_OUT
159: */
160: public String MEP_URI_IN_OPTIONAL_OUT = "http://www.w3.org/2006/01/wsdl/in-opt-out";
161: /**
162: * http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327/#out-only
163: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_OUT_ONLY
164: */
165: public String MEP_URI_OUT_ONLY = "http://www.w3.org/2006/01/wsdl/out-only";
166: /**
167: * http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327/#robust-out-only
168: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_ROBUST_OUT_ONLY
169: */
170: public String MEP_URI_ROBUST_OUT_ONLY = "http://www.w3.org/2006/01/wsdl/robust-out-only";
171: /**
172: * http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327/#out-in
173: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_OUT_IN
174: */
175: public String MEP_URI_OUT_IN = "http://www.w3.org/2006/01/wsdl/out-in";
176: /**
177: * http://www.w3.org/TR/2006/CR-wsdl20-adjuncts-20060327/#out-opt-in
178: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_OUT_OPTIONAL_IN
179: */
180: public String MEP_URI_OUT_OPTIONAL_IN = "http://www.w3.org/2006/01/wsdl/out-opt-in";
181:
182: }
183:
184: public static interface WSDL20_2004_Constants {
185:
186: /**
187: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_IN_ONLY
188: */
189: public String MEP_URI_IN_ONLY = "http://www.w3.org/2004/08/wsdl/in-only";
190:
191: /**
192: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_ROBUST_IN_ONLY
193: */
194: public String MEP_URI_ROBUST_IN_ONLY = "http://www.w3.org/2004/08/wsdl/robust-in-only";
195:
196: /**
197: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_IN_OUT
198: */
199:
200: public String MEP_URI_IN_OUT = "http://www.w3.org/2004/08/wsdl/in-out";
201:
202: /**
203: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_IN_OPTIONAL_OUT
204: */
205: public String MEP_URI_IN_OPTIONAL_OUT = "http://www.w3.org/2004/08/wsdl/in-opt-out";
206:
207: /**
208: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_OUT_ONLY
209: */
210: public String MEP_URI_OUT_ONLY = "http://www.w3.org/2004/08/wsdl/out-only";
211:
212: /**
213: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_ROBUST_OUT_ONLY
214: */
215: public String MEP_URI_ROBUST_OUT_ONLY = "http://www.w3.org/2004/08/wsdl/robust-out-only";
216:
217: /**
218: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_OUT_IN
219: */
220: public String MEP_URI_OUT_IN = "http://www.w3.org/2004/08/wsdl/out-in";
221:
222: /**
223: * @deprecated Please use org.apache.axis2.description.WSDL2Constants.MEP_URI_OUT_OPTIONAL_IN
224: */
225: public String MEP_URI_OUT_OPTIONAL_IN = "http://www.w3.org/2004/08/wsdl/out-opt-in";
226: }
227: }
|