axis2_const.h

00001 
00002 /*
00003  * Licensed to the Apache Software Foundation (ASF) under one or more
00004  * contributor license agreements.  See the NOTICE file distributed with
00005  * this work for additional information regarding copyright ownership.
00006  * The ASF licenses this file to You under the Apache License, Version 2.0
00007  * (the "License"); you may not use this file except in compliance with
00008  * the License.  You may obtain a copy of the License at
00009  *
00010  *      http://www.apache.org/licenses/LICENSE-2.0
00011  *
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
00017  */
00018 
00019 #ifndef AXIS2_CONST_H
00020 #define AXIS2_CONST_H
00021 
00027 #include <axutil_env.h>
00028 #include <axutil_utils.h>
00029 
00030 #ifdef __cplusplus
00031 extern "C"
00032 {
00033 #endif
00034 
00053     /******************************************************************************/
00054 
00055     /********************Axis2 specific constants**********************************/
00056 
00057     /******************************************************************************/
00058 
00062 #define AXIOM_SOAP_STYLE_RPC_ENCODED 1000
00063 
00068     /*#define AXIOM_SOAP_STYLE_RPC_LITERAL 1001 */
00069 
00073 #define AXIOM_SOAP_STYLE_DOC_LITERAL_WRAPPED 1002
00074 
00075 #define AXIS2_SCOPE "scope"
00076 
00080 #define AXIS2_APPLICATION_SCOPE "application"
00081 
00085 #define AXIS2_SESSION_SCOPE "session"
00086 
00090 #define AXIS2_MESSAGE_SCOPE "message"
00091 
00095 #define AXIS2_PHASE_SERVICE "service"
00096 
00100 #define AXIS2_PHASE_TRANSPORT "transport"
00101 
00105 #define AXIS2_PHASE_GLOBAL "global"
00106 
00110 #define AXIS2_SESSION_CONTEXT_PROPERTY "SessionContext"
00111 
00115 #define AXIS2_TRANSPORT_HTTP "http"
00116 #define AXIS2_TRANSPORT_SMTP "smtp"
00117 #define AXIS2_TRANSPORT_TCP "tcp"
00118 #define AXIS2_TRANSPORT_XMPP "xmpp"
00119 #define AXIS2_TRANSPORT_HTTPS "https"
00120 #define AXIS2_TRANSPORT_AMQP "amqp"
00121     typedef enum
00122     {
00123         AXIS2_TRANSPORT_ENUM_HTTP = 0,
00124         AXIS2_TRANSPORT_ENUM_SMTP,
00125         AXIS2_TRANSPORT_ENUM_TCP,
00126         AXIS2_TRANSPORT_ENUM_XMPP,
00127         AXIS2_TRANSPORT_ENUM_HTTPS,
00128         AXIS2_TRANSPORT_ENUM_AMQP,
00129         AXIS2_TRANSPORT_ENUM_MAX
00130     } AXIS2_TRANSPORT_ENUMS;
00131 
00133 #ifndef AXIS2_REQUEST_URL_PREFIX
00134 #define AXIS2_REQUEST_URL_PREFIX "/services"
00135 #endif
00136 
00137 #define AXIS2_LISTSERVICES "listServices"
00138 
00139 #define AXIS2_LIST_SERVICE_FOR_MODULE_ENGAMNET "listop"
00140 
00144 #define AXIS2_ADMIN_LISTSERVICES "listService"
00145 
00146 #define AXIS2_LIST_MODULES "listModules"
00147 
00148 #define AXIS2_LIST_GLOABLLY_ENGAGED_MODULES "globalModules"
00149 
00150 #define AXIS2_LIST_PHASES "listPhases"
00151 
00152 #define AXIS2_ENGAGE_GLOBAL_MODULE "engagingglobally"
00153 #define AXIS2_ENGAGE_MODULE_TO_SERVICE "engageToService"
00154 
00155 #define AXIS2_ENGAGE_MODULE_TO_SERVICE_GROUP "engageToServiceGroup"
00156 
00157 #define AXIS2_ADMIN_LOGIN "adminlogin"
00158 
00159 #define AXIS2_LIST_CONTEXTS "listContexts"
00160 #define AXIS2_LOGOUT "logout"
00161 
00162 #define AXIS2_VIEW_GLOBAL_HANDLERS "viewGlobalHandlers"
00163 #define AXIS2_SELECT_SERVICE "selectService"
00164 #define AXIS2_EDIR_SERVICE_PARA "editServicepara"
00165 #define AXIS2_SELECT_SERVICE_FOR_PARA_EDIT "selectServiceParaEdit"
00166 #define AXIS2_VIEW_SERVICE_HANDLERS "viewServiceHandlers"
00167 #define AXIS2_LIST_SERVIC_GROUPS "listServciceGroups"
00168 
00172 #define AXIS2_SERVICE_MAP "servicemap"
00173 #define AXIS2_SERVICE_GROUP_MAP "serviceGroupmap"
00174 
00175 #define AXIS2_CONFIG_CONTEXT "config_context"
00176 #define AXIS2_ACTION_MAPPING "actionMapping"
00177 #define AXIS2_OUTPUT_ACTION_MAPPING "outputActionMapping"
00178 #define AXI2_FAULT_ACTION_MAPPING "faultActionMapping"
00179 
00180 #define AXIS2_SERVICE "service"
00181 
00182 #define AXIS2_OPEARTION_MAP "opmap"
00183 
00187 #define AXIS2_MODULE_MAP "modulemap"
00188 
00189 #define AXIS2_SELECT_SERVICE_TYPE "SELECT_SERVICE_TYPE"
00190 
00191 #define AXIS2_GLOBAL_HANDLERS "axisconfig"
00192 #define AXIS2_SERVICE_HANDLERS "serviceHandlers"
00193 
00194 #define AXIS2_PHASE_LIST "phaseList"
00195 
00196 #define AXIS2_LIST_OPS_FOR_THE_SERVICE "listOperations"
00197 
00198 #define AXIS2_REMOVE_SERVICE "removeService"
00199 
00200 #define AXIS2_ENGAGE_STATUS "engagestatus"
00201 
00205 #define AXIS2_ERROR_SERVICE_MAP "errprservicemap"
00206 #define AXIS2_ERROR_MODULE_MAP "errormodulesmap"
00207 
00208 #define AXIS2_IS_FAULTY "Fault"
00209 
00210 #define AXIS2_MODULE_ADDRESSING "addressing"
00211 
00212 #define AXIS2_USER_NAME "userName"
00213 #define AXIS2_PASSWORD "password"
00214 
00218 #define AXIS2_SINGLE_SERVICE "singleservice"
00219 #define AXIS2_WSDL_CONTENT "wsdl"
00220 #define AXIS2_REQUEST_WSDL "?wsdl"
00221 
00222 #define AXIS2_STYLE_RPC  "rpc"
00223 #define AXIS2_STYLE_DOC  "doc"
00224 #define AXIS2_STYLE_MSG  "msg"
00225 
00226     typedef enum axis2_wsdl_msg_labels
00227     {
00228         AXIS2_WSDL_MESSAGE_LABEL_IN = 0,
00229         AXIS2_WSDL_MESSAGE_LABEL_OUT,
00230         AXIS2_WSDL_MESSAGE_LABEL_MAX
00231     } axis2_wsdl_msg_labels_t;
00232 
00233     /*********************Message Exchange Pattern Constants***********************/
00234 
00238 #define AXIS2_MEP_URI_IN_ONLY "http://www.w3.org/2004/08/wsdl/in-only"
00239 
00240 #define AXIS2_MEP_CONSTANT_IN_ONLY 10
00241 
00245 #define AXIS2_MEP_URI_ROBUST_IN_ONLY "http://www.w3.org/2004/08/wsdl/robust-in-only"
00246 
00247 #define AXIS2_MEP_CONSTANT_ROBUST_IN_ONLY 11
00248 
00252 #define AXIS2_MEP_URI_IN_OUT "http://www.w3.org/2004/08/wsdl/in-out"
00253 
00254 #define AXIS2_MEP_CONSTANT_IN_OUT 12
00255 
00259 #define AXIS2_MEP_URI_IN_OPTIONAL_OUT "http://www.w3.org/2004/08/wsdl/in-opt-out"
00260 
00261 #define AXIS2_MEP_CONSTANT_IN_OPTIONAL_OUT 13
00262 
00266 #define AXIS2_MEP_URI_OUT_ONLY "http://www.w3.org/2004/08/wsdl/out-only"
00267 
00268 #define AXIS2_MEP_CONSTANT_OUT_ONLY 14
00269 
00273 #define AXIS2_MEP_URI_ROBUST_OUT_ONLY "http://www.w3.org/2004/08/wsdl/robust-out-only"
00274 
00275 #define AXIS2_MEP_CONSTANT_ROBUST_OUT_ONLY 15
00276 
00280 #define AXIS2_MEP_URI_OUT_IN "http://www.w3.org/2004/08/wsdl/out-in"
00281 
00282 #define AXIS2_MEP_CONSTANT_OUT_IN 16
00283 
00287 #define AXIS2_MEP_URI_OUT_OPTIONAL_IN "http://www.w3.org/2004/08/wsdl/out-opt-in"
00288 
00289 #define AXIS2_MEP_CONSTANT_OUT_OPTIONAL_IN 17
00290 
00291 #define AXIS2_MEP_CONSTANT_INVALID -1
00292 
00296 #define AXIS2_WSDL_MESSAGE_DIRECTION_IN "in"
00297 
00301 #define AXIS2_WSDL_MESSAGE_DIRECTION_OUT "out"
00302 
00306 #define AXIS2_REST_HTTP_LOCATION "RESTLocation"
00307 
00311 #define AXIS2_REST_HTTP_METHOD "RESTMethod"
00312 
00316 #define AXIS2_DEFAULT_REST_HTTP_METHOD "defaultRESTMethod"
00317 
00322     /* static const char METHOD_NAME_ESCAPE_CHARACTOR '?' */
00323 
00324 #define AXIS2_LOGGED "Logged"
00325 
00326     /* static const char SERVICE_NAME_SPLIT_CHAR':' */
00327 
00328     /*********************Configuration *******************************************/
00329 
00330 #define AXIS2_ENABLE_REST "enableREST"
00331 #define AXIS2_ENABLE_REST_THROUGH_GET "restThroughGet"
00332 
00333 #define AXIS2_FORCE_PROXY_AUTH "forceProxyAuth"
00334 #define AXIS2_FORCE_HTTP_AUTH "forceHTTPAuth"
00335 
00336 #define AXIS2_PROXY_AUTH_TYPE "proxyAuthType"
00337 #define AXIS2_HTTP_AUTH_TYPE "HTTPAuthType"
00338 
00342 #define AXIS2_TEST_PROXY_AUTH "testProxyAuth"
00343 
00347 #define AXIS2_TEST_HTTP_AUTH "testHTTPAuth"
00348 
00349     /* add xml declaration */
00350 #define AXIS2_XML_DECLARATION "xml-declaration"
00351 #define AXIS2_ADD_XML_DECLARATION "insert"
00352 
00353     /* globally enable MTOM */
00354 #define AXIS2_ENABLE_MTOM "enableMTOM"
00355 #define AXIS2_ATTACHMENT_TEMP_DIR "attachmentDIR"
00356 #define AXIS2_CACHE_ATTACHMENTS "cacheAttachments"
00357 #define AXIS2_FILE_SIZE_THRESHOLD "sizeThreshold"
00358 #define AXIS2_MTOM_CHUNK_BUFFER_SIZE "MTOMChunkBufferSize"
00359 #define AXIS2_MTOM_MAX_CHUNK_BUFFERS "MTOMMaxChunkBuffers"
00360 
00361     /* op_ctx persistance */
00362 #define AXIS2_PERSIST_OP_CTX "persistOperationContext"
00363 
00364 #define AXIS2_EXPOSE_HEADERS "exposeHeaders"
00365 
00366     /******************************************************************************/
00367 
00368 #define AXIS2_VALUE_TRUE "true"
00369 #define AXIS2_VALUE_FALSE "false"
00370 #define AXIS2_CONTAINER_MANAGED "ContainerManaged"
00371 #define AXIS2_RESPONSE_WRITTEN "CONTENT_WRITTEN"
00372 
00373 #define AXIS2_TESTING_PATH "target/test-resources/"
00374 
00375 #define AXIS2_TESTING_REPOSITORY "target/test-resources/samples"
00376 
00377     /* Indicate whether the axis2 service should be loaded at start up */
00378 #define AXIS2_LOAD_SVC_STARTUP "loadServiceAtStartup"
00379 
00380     /*************************** REST_WITH_GET ************************************/
00381 
00382 #define AXIS2_GET_PARAMETER_OP "op"
00383 #define AXIS2_GET_PARAMETER_URL "http://ws.apache.org/goGetWithREST"
00384 
00385     /******************************************************************************/
00386 
00387 #define AXIS2_NAMESPACE_PREFIX "axis2"
00388 #define AXIS2_NAMESPACE_URI "http://ws.apache.org/namespaces/axis2"
00389 
00390 #define AXIS2_SVC_GRP_ID "ServiceGroupId"
00391 
00392 #define AXIS2_RESPONSE_SOAP_ENVELOPE "Axis2ResponseEnvelope"
00393 #define AXIS2_HANDLER_ALREADY_VISITED "handler_already_visited"
00394 #define AXIS2_IS_SVR_SIDE "axis2_is_svr_side"
00395 
00396 #define AXIS2_SERVICE_DIR "servicesDir"
00397 #define AXIS2_MODULE_DIR "moduleDir"
00398 
00399 #define AXIS2_MESSAGE_ID_PREFIX "urn:uuid:"
00400 #ifdef __cplusplus
00401 }
00402 #endif
00403 
00404 #endif                          /* AXIS2_CONST_H */

Generated on Fri Jul 11 11:56:35 2008 for Axis2/C by  doxygen 1.5.5