Main Page | Modules | Class List | Directories | File List | Class Members | File Members

axis2.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef AXIS2_H
00018 #define AXIS2_H
00019 
00025 #include <stdlib.h>
00026 #include <stdio.h>
00027 #include <axis2_env.h>
00028 
00039 #define AXIS2_FUNC_PARAM_CHECK(object, env, error_return) \
00040     AXIS2_ENV_CHECK(env, error_return);\
00041     if (!object) \
00042     { \
00043         AXIS2_ERROR_SET_ERROR_NUMBER((*env)->error, AXIS2_ERROR_INVALID_NULL_PARAM); \
00044         AXIS2_ERROR_SET_STATUS_CODE((*env)->error, AXIS2_FAILURE); \
00045         return error_return; \
00046     } \
00047     else \
00048     { \
00049         AXIS2_ERROR_SET_STATUS_CODE((*env)->error, AXIS2_SUCCESS); \
00050     }
00051  
00061 #define AXIS2_PARAM_CHECK(error, object, error_return) \
00062     if (!object) \
00063     { \
00064         AXIS2_ERROR_SET_ERROR_NUMBER(error, AXIS2_ERROR_INVALID_NULL_PARAM); \
00065         AXIS2_ERROR_SET_STATUS_CODE(error, AXIS2_FAILURE); \
00066         return error_return; \
00067     } \
00068     else \
00069     { \
00070         AXIS2_ERROR_SET_STATUS_CODE(error, AXIS2_SUCCESS); \
00071     } 
00072 
00081 #define AXIS2_ERROR_SET(error, error_number, error_return) \
00082     { \
00083         AXIS2_ERROR_SET_ERROR_NUMBER(error, error_number); \
00084         AXIS2_ERROR_SET_STATUS_CODE(error, AXIS2_FAILURE); \
00085         return error_return; \
00086     }      
00087 
00088 #ifdef __cplusplus
00089 extern "C"
00090 {
00091 #endif
00092 
00093 
00098 /******************************************************************************/
00099 /********************Axis2 specific constants**********************************/
00100 /******************************************************************************/
00104 /* static const int SOAP_STYLE_RPC_ENCODED = 1000;*/
00105 
00109 /*static const int SOAP_STYLE_RPC_LITERAL = 1001; */
00110 
00114 /* static const int SOAP_STYLE_DOC_LITERAL_WRAPPED = 1002; */
00115 
00119 /* static const axis2_char_t * APPLICATION_SCOPE = "application"; */
00120 
00124 /* static const axis2_char_t * SESSION_SCOPE = "session"; */
00125 
00129 /* static const axis2_char_t * MESSAGE_SCOPE = "message"; */
00130 
00134 /* static const axis2_char_t * PHASE_SERVICE = "service"; */
00135 
00139 /* static const axis2_char_t * PHASE_TRANSPORT = "transport"; */
00140 
00144 /* static const axis2_char_t * PHASE_GLOBAL = "global"; */
00145 
00149 /* static const axis2_char_t * SESSION_CONTEXT_PROPERTY = "SessionContext"; */
00150 
00154 /* static const axis2_char_t * TRANSPORT_TCP = "tcp"; */
00155 
00159 /* static const axis2_char_t * TRANSPORT_HTTP = "http"; */
00160 
00161 
00162 
00163 /* static const axis2_char_t * TRANSPORT_MAIL = "mail"; */
00164 
00165 /* static const axis2_char_t * TRANSPORT_JMS = "jms"; */
00166 
00167 /* static const axis2_char_t * TRANSPORT_LOCAL = "local"; */
00168 
00172 /* static const axis2_char_t * REQUEST_URL_PREFIX = "/services"; */
00173 
00174 /* static const axis2_char_t * LISTSERVICES = "listServices"; */
00175 
00176 /* static const axis2_char_t * LIST_SERVICE_FOR_MODULE_ENGAMNET = "listoperation"; */
00177 
00178 
00182 /* static const axis2_char_t * ADMIN_LISTSERVICES = "listService"; */
00183 
00184 /* static const axis2_char_t * LIST_MODULES = "listModules"; */
00185 
00186 /* static const axis2_char_t * LIST_GLOABLLY_ENGAGED_MODULES = "globalModules"; */
00187 
00188 /* static const axis2_char_t * LIST_PHASES = "listPhases"; */
00189 
00190 /* static const axis2_char_t * ENGAGE_GLOBAL_MODULE = "engagingglobally"; */
00191 /* static const axis2_char_t * ENGAGE_MODULE_TO_SERVICE = "engageToService"; */
00192 
00193 /* static const axis2_char_t * ENGAGE_MODULE_TO_SERVICE_GROUP = "engageToServiceGroup"; */
00194 
00195 /* static const axis2_char_t * ADMIN_LOGIN = "adminlogin"; */
00196 
00197 /* static const axis2_char_t * LIST_CONTEXTS = "listContexts"; */
00198 /* static const axis2_char_t * LOGOUT = "logout"; */
00199 
00200 /* static const axis2_char_t * VIEW_GLOBAL_HANDLERS = "viewGlobalHandlers"; */
00201 /* static const axis2_char_t * SELECT_SERVICE = "selectService"; */
00202 /* static const axis2_char_t * EDIR_SERVICE_PARA = "editServicepara"; */
00203 /* static const axis2_char_t * SELECT_SERVICE_FOR_PARA_EDIT = "selectServiceParaEdit"; */
00204 /* static const axis2_char_t * VIEW_SERVICE_HANDLERS = "viewServiceHandlers"; */
00205 /* static const axis2_char_t * LIST_SERVIC_GROUPS = "listServciceGroups"; */
00206 
00210 /* static const axis2_char_t * SERVICE_MAP = "servicemap"; */
00211 /* static const axis2_char_t * SERVICE_GROUP_MAP = "serviceGroupmap"; */
00212 
00213 /* static const axis2_char_t * CONFIG_CONTEXT = "config_context"; */
00214 
00215 /* static const axis2_char_t * SERVICE = "service"; */
00216 
00217 /* static const axis2_char_t * OPEARTION_MAP = "operationmap"; */
00221 /* static const axis2_char_t * MODULE_MAP = "modulemap"; */
00222 
00223 /* static const axis2_char_t * SELECT_SERVICE_TYPE = "SELECT_SERVICE_TYPE"; */
00224 
00225 /* static const axis2_char_t * GLOBAL_HANDLERS = "axisconfig"; */
00226 /* static const axis2_char_t * SERVICE_HANDLERS = "serviceHandlers"; */
00227 
00228 /* static const axis2_char_t * PHASE_LIST = "phaseList"; */
00229 
00230 /* static const axis2_char_t * LIST_OPERATIONS_FOR_THE_SERVICE = "listOperations"; */
00231 
00232 /* static const axis2_char_t * REMOVE_SERVICE = "removeService"; */
00233 
00234 /* static const axis2_char_t * ENGAGE_STATUS = "engagestatus"; */
00235 
00239 /* static const axis2_char_t * ERROR_SERVICE_MAP = "errprservicemap"; */
00240 /* static const axis2_char_t * ERROR_MODULE_MAP = "errormodulesmap"; */
00241 
00242 /* static const axis2_char_t * IS_FAULTY = "Fault"; */
00243 
00244 /* static const axis2_char_t * MODULE_ADDRESSING = "addressing"; */
00245 
00246 /* static const axis2_char_t * USER_NAME = "userName"; */
00247 /* static const axis2_char_t * PASSWORD = "password"; */
00248 
00252 /* static const axis2_char_t * SINGLE_SERVICE = "singleservice"; */
00253 /* static const axis2_char_t * WSDL_CONTENT = "wsdl"; */
00254 
00258 /* static const char METHOD_NAME_ESCAPE_CHARACTOR = '?'; */
00259 
00260 /* static const axis2_char_t * LOGGED = "Logged"; */
00261 
00262 
00263 /* static const char SERVICE_NAME_SPLIT_CHAR =':'; */
00264 
00265 
00266 /*********************Configuration *******************************************/
00267 
00268 /* static const axis2_char_t * ENABLE_REST = "enableREST"; */
00269 /* static const axis2_char_t * ENABLE_REST_THROUGH_GET="restThroughGet"; */
00270 /* globally enable MTOM */
00271 /* static const axis2_char_t * ENABLE_MTOM = "enableMTOM"; */
00272 /* static const axis2_char_t * ATTACHMENT_TEMP_DIR = "attachmentDIR"; */
00273 /* static const axis2_char_t * CACHE_ATTACHMENTS = "cacheAttachments"; */
00274 /* static const axis2_char_t * FILE_SIZE_THRESHOLD = "sizeThreshold"; */
00275 
00276 /******************************************************************************/
00277 
00278 /* static const axis2_char_t * VALUE_TRUE = "true"; */
00279 /* static const axis2_char_t * VALUE_FALSE = "false"; */
00280 /* static const axis2_char_t * CONTAINER_MANAGED = "ContainerManaged"; */
00281 /* static const axis2_char_t * RESPONSE_WRITTEN = "CONTENT_WRITTEN"; */
00282 #define WSA_ACTION "wsamapping"
00283 
00284 
00285 /* static const axis2_char_t * TESTING_PATH = "target/test-resources/"; */
00286 
00287 /* static const axis2_char_t * TESTING_REPOSITORY = "target/test-resources/samples"; */
00288 
00289 
00290 /*************************** REST_WITH_GET ************************************/
00291 
00292 /* static const axis2_char_t * GET_PARAMETER_OPERATION = "operation"; */
00293 /* static const axis2_char_t * GET_PARAMETER_URL = "http://ws.apache.org/goGetWithREST"; */
00294 
00295 /******************************************************************************/
00296 
00297 
00298 /* static const axis2_char_t * AXIS2_NAMESPACE_PREFIX = "axis2"; */
00299 /* static const axis2_char_t * AXIS2_NAMESPACE_URI = "http://ws.apache.org/namespaces/axis2"; */
00300 
00301 /* static const axis2_char_t * SERVICE_GROUP_ID = "ServiceGroupId"; */    
00302 
00305 #ifdef __cplusplus
00306 }
00307 #endif
00308 
00309 #endif /* AXIS2_H */

Generated on Wed Dec 7 07:58:24 2005 for Axis2/C by  doxygen 1.4.2