# 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 #define AXIS2_TRANSPORT_UDP             "soap.udp"
    00122     typedef enum
    00123     {
    00124         AXIS2_TRANSPORT_ENUM_HTTP = 0,
    00125         AXIS2_TRANSPORT_ENUM_SMTP,
    00126         AXIS2_TRANSPORT_ENUM_TCP,
    00127         AXIS2_TRANSPORT_ENUM_XMPP,
    00128         AXIS2_TRANSPORT_ENUM_HTTPS,
    00129         AXIS2_TRANSPORT_ENUM_AMQP,
    00130                 AXIS2_TRANSPORT_ENUM_UDP,
    00131         AXIS2_TRANSPORT_ENUM_MAX
    00132     } AXIS2_TRANSPORT_ENUMS;
    00133
    00135 #ifndef AXIS2_REQUEST_URL_PREFIX
    00136 #define AXIS2_REQUEST_URL_PREFIX "/services"
    00137 #endif
    00138
    00139 #define AXIS2_LISTSERVICES "listServices"
    00140
    00141 #define AXIS2_LIST_SERVICE_FOR_MODULE_ENGAMNET "listop"
    00142
    00146 #define AXIS2_ADMIN_LISTSERVICES "listService"
    00147
    00148 #define AXIS2_LIST_MODULES "listModules"
    00149
    00150 #define AXIS2_LIST_GLOABLLY_ENGAGED_MODULES "globalModules"
    00151
    00152 #define AXIS2_LIST_PHASES "listPhases"
    00153
    00154 #define AXIS2_ENGAGE_GLOBAL_MODULE "engagingglobally"
    00155 #define AXIS2_ENGAGE_MODULE_TO_SERVICE "engageToService"
    00156
    00157 #define AXIS2_ENGAGE_MODULE_TO_SERVICE_GROUP "engageToServiceGroup"
    00158
    00159 #define AXIS2_ADMIN_LOGIN "adminlogin"
    00160
    00161 #define AXIS2_LIST_CONTEXTS "listContexts"
    00162 #define AXIS2_LOGOUT "logout"
    00163
    00164 #define AXIS2_VIEW_GLOBAL_HANDLERS "viewGlobalHandlers"
    00165 #define AXIS2_SELECT_SERVICE "selectService"
    00166 #define AXIS2_EDIR_SERVICE_PARA "editServicepara"
    00167 #define AXIS2_SELECT_SERVICE_FOR_PARA_EDIT "selectServiceParaEdit"
    00168 #define AXIS2_VIEW_SERVICE_HANDLERS "viewServiceHandlers"
    00169 #define AXIS2_LIST_SERVIC_GROUPS "listServciceGroups"
    00170
    00174 #define AXIS2_SERVICE_MAP "servicemap"
    00175 #define AXIS2_SERVICE_GROUP_MAP "serviceGroupmap"
    00176
    00177 #define AXIS2_CONFIG_CONTEXT "config_context"
    00178 #define AXIS2_ACTION_MAPPING "actionMapping"
    00179 #define AXIS2_OUTPUT_ACTION_MAPPING "outputActionMapping"
    00180 #define AXI2_FAULT_ACTION_MAPPING "faultActionMapping"
    00181
    00182 #define AXIS2_SERVICE "service"
    00183
    00184 #define AXIS2_OPEARTION_MAP "opmap"
    00185
    00189 #define AXIS2_MODULE_MAP "modulemap"
    00190
    00191 #define AXIS2_SELECT_SERVICE_TYPE "SELECT_SERVICE_TYPE"
    00192
    00193 #define AXIS2_GLOBAL_HANDLERS "axisconfig"
    00194 #define AXIS2_SERVICE_HANDLERS "serviceHandlers"
    00195
    00196 #define AXIS2_PHASE_LIST "phaseList"
    00197
    00198 #define AXIS2_LIST_OPS_FOR_THE_SERVICE "listOperations"
    00199
    00200 #define AXIS2_REMOVE_SERVICE "removeService"
    00201
    00202 #define AXIS2_ENGAGE_STATUS "engagestatus"
    00203
    00207 #define AXIS2_ERROR_SERVICE_MAP "errprservicemap"
    00208 #define AXIS2_ERROR_MODULE_MAP "errormodulesmap"
    00209
    00210 #define AXIS2_IS_FAULTY "Fault"
    00211
    00212 #define AXIS2_MODULE_ADDRESSING "addressing"
    00213
    00214 #define AXIS2_USE_SEPARATE_LISTENER "use_listener"
    00215
    00216 #define AXIS2_USER_NAME "userName"
    00217 #define AXIS2_PASSWORD "password"
    00218
    00222 #define AXIS2_SINGLE_SERVICE "singleservice"
    00223 #define AXIS2_WSDL_CONTENT "wsdl"
    00224 #define AXIS2_REQUEST_WSDL "?wsdl"
    00225
    00226 #define AXIS2_STYLE_RPC  "rpc"
    00227 #define AXIS2_STYLE_DOC  "doc"
    00228 #define AXIS2_STYLE_MSG  "msg"
    00229
    00230     typedef enum axis2_wsdl_msg_labels
    00231     {
    00232         AXIS2_WSDL_MESSAGE_LABEL_IN = 0,
    00233         AXIS2_WSDL_MESSAGE_LABEL_OUT,
    00234         AXIS2_WSDL_MESSAGE_LABEL_MAX
    00235     } axis2_wsdl_msg_labels_t;
    00236
    00237     /*********************Message Exchange Pattern Constants***********************/
    00238
    00242 #define AXIS2_MEP_URI_IN_ONLY "http://www.w3.org/2004/08/wsdl/in-only"
    00243
    00244 #define AXIS2_MEP_URI_IN_ONLY_WSDL2 "http://www.w3.org/ns/wsdl/in-only";
    00245
    00246 #define AXIS2_MEP_CONSTANT_IN_ONLY 10
    00247
    00251 #define AXIS2_MEP_URI_ROBUST_IN_ONLY "http://www.w3.org/2004/08/wsdl/robust-in-only"
    00252
    00253 #define AXIS2_MEP_CONSTANT_ROBUST_IN_ONLY 11
    00254
    00258 #define AXIS2_MEP_URI_IN_OUT "http://www.w3.org/2004/08/wsdl/in-out"
    00259
    00260 #define AXIS2_MEP_URI_IN_OUT_WSDL2 "http://www.w3.org/ns/wsdl/in-out"
    00261
    00262 #define AXIS2_MEP_CONSTANT_IN_OUT 12
    00263
    00267 #define AXIS2_MEP_URI_IN_OPTIONAL_OUT "http://www.w3.org/2004/08/wsdl/in-opt-out"
    00268
    00269 #define AXIS2_MEP_CONSTANT_IN_OPTIONAL_OUT 13
    00270
    00274 #define AXIS2_MEP_URI_OUT_ONLY "http://www.w3.org/2004/08/wsdl/out-only"
    00275
    00276 #define AXIS2_MEP_CONSTANT_OUT_ONLY 14
    00277
    00281 #define AXIS2_MEP_URI_ROBUST_OUT_ONLY "http://www.w3.org/2004/08/wsdl/robust-out-only"
    00282
    00283 #define AXIS2_MEP_CONSTANT_ROBUST_OUT_ONLY 15
    00284
    00288 #define AXIS2_MEP_URI_OUT_IN "http://www.w3.org/2004/08/wsdl/out-in"
    00289
    00290 #define AXIS2_MEP_CONSTANT_OUT_IN 16
    00291
    00295 #define AXIS2_MEP_URI_OUT_OPTIONAL_IN "http://www.w3.org/2004/08/wsdl/out-opt-in"
    00296
    00297 #define AXIS2_MEP_CONSTANT_OUT_OPTIONAL_IN 17
    00298
    00299 #define AXIS2_MEP_CONSTANT_INVALID -1
    00300
    00304 #define AXIS2_WSDL_MESSAGE_DIRECTION_IN "in"
    00305
    00309 #define AXIS2_WSDL_MESSAGE_DIRECTION_OUT "out"
    00310
    00314 #define AXIS2_REST_HTTP_LOCATION "RESTLocation"
    00315
    00319 #define AXIS2_REST_HTTP_METHOD "RESTMethod"
    00320
    00324 #define AXIS2_DEFAULT_REST_HTTP_METHOD "defaultRESTMethod"
    00325
    00330     /* static const char METHOD_NAME_ESCAPE_CHARACTOR '?' */
    00331
    00332 #define AXIS2_LOGGED "Logged"
    00333
    00334     /* static const char SERVICE_NAME_SPLIT_CHAR':' */
    00335
    00336     /*********************Configuration *******************************************/
    00337
    00338 #define AXIS2_ENABLE_REST "enableREST"
    00339 #define AXIS2_ENABLE_REST_THROUGH_GET "restThroughGet"
    00340
    00341 #define AXIS2_FORCE_PROXY_AUTH "forceProxyAuth"
    00342 #define AXIS2_FORCE_HTTP_AUTH "forceHTTPAuth"
    00343
    00344 #define AXIS2_PROXY_AUTH_TYPE "proxyAuthType"
    00345 #define AXIS2_HTTP_AUTH_TYPE "HTTPAuthType"
    00346
    00350 #define AXIS2_TEST_PROXY_AUTH "testProxyAuth"
    00351
    00355 #define AXIS2_TEST_HTTP_AUTH "testHTTPAuth"
    00356
    00357     /* add xml declaration */
    00358 #define AXIS2_XML_DECLARATION "xml-declaration"
    00359 #define AXIS2_ADD_XML_DECLARATION "insert"
    00360
    00361     /* globally enable MTOM */
    00362 #define AXIS2_ENABLE_MTOM "enableMTOM"
    00363 #define AXIS2_ATTACHMENT_DIR "attachmentDIR"
    00364 #define AXIS2_MTOM_BUFFER_SIZE "MTOMBufferSize"
    00365 #define AXIS2_MTOM_MAX_BUFFERS "MTOMMaxBuffers"
    00366 #define AXIS2_MTOM_CACHING_CALLBACK "MTOMCachingCallback"
    00367 #define AXIS2_MTOM_SENDING_CALLBACK "MTOMSendingCallback"
    00368 #define AXIS2_ENABLE_MTOM_SERVICE_CALLBACK "EnableMTOMServiceCallback"
    00369
    00370     /* op_ctx persistance */
    00371 #define AXIS2_PERSIST_OP_CTX "persistOperationContext"
    00372
    00373 #define AXIS2_EXPOSE_HEADERS "exposeHeaders"
    00374
    00375     /******************************************************************************/
    00376
    00377 #define AXIS2_VALUE_TRUE "true"
    00378 #define AXIS2_VALUE_FALSE "false"
    00379 #define AXIS2_CONTAINER_MANAGED "ContainerManaged"
    00380 #define AXIS2_RESPONSE_WRITTEN "CONTENT_WRITTEN"
    00381
    00382 #define AXIS2_TESTING_PATH "target/test-resources/"
    00383
    00384 #define AXIS2_TESTING_REPOSITORY "target/test-resources/samples"
    00385
    00386     /* Indicate whether the axis2 service should be loaded at start up */
    00387 #define AXIS2_LOAD_SVC_STARTUP "loadServiceAtStartup"
    00388
    00389     /*************************** REST_WITH_GET ************************************/
    00390
    00391 #define AXIS2_GET_PARAMETER_OP "op"
    00392 #define AXIS2_GET_PARAMETER_URL "http://ws.apache.org/goGetWithREST"
    00393
    00394     /******************************************************************************/
    00395
    00396 #define AXIS2_NAMESPACE_PREFIX "axis2"
    00397 #define AXIS2_NAMESPACE_URI "http://ws.apache.org/namespaces/axis2"
    00398
    00399 #define AXIS2_SVC_GRP_ID "ServiceGroupId"
    00400
    00401 #define AXIS2_RESPONSE_SOAP_ENVELOPE "Axis2ResponseEnvelope"
    00402 #define AXIS2_HANDLER_ALREADY_VISITED "handler_already_visited"
    00403 #define AXIS2_IS_SVR_SIDE "axis2_is_svr_side"
    00404
    00405 #define AXIS2_SERVICE_DIR "servicesDir"
    00406 #define AXIS2_MODULE_DIR "moduleDir"
    00407
    00408 #define AXIS2_MESSAGE_ID_PREFIX "urn:uuid:"
    00409
    00411 #define AXIS2_ANON_SERVICE  "__ANONYMOUS_SERVICE__"
    00412
    00414 #define AXIS2_ANON_OUT_ONLY_OP "__OPERATION_OUT_ONLY__"
    00415
    00417 #define AXIS2_ANON_ROBUST_OUT_ONLY_OP "__OPERATION_ROBUST_OUT_ONLY__"
    00418
    00420 #define AXIS2_ANON_OUT_IN_OP "__OPERATION_OUT_IN__"
    00421
    00423 #define AXIS2_WSDL_LOCATION_IN_REPO "woden"
    00424
    00425 #define AXIS2_SVC_CLIENT_CLOSED "closed"
    00426
    00427 #ifdef __cplusplus
    00428 }
    00429 #endif
    00430
    00431 #endif                          /* AXIS2_CONST_H */