You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Samisa Abeysinghe (JIRA)" <ji...@apache.org> on 2007/03/18 13:50:09 UTC
[jira] Resolved: (AXIS2C-321) Registered handlers not invoked at
all on REST GET requests
[ https://issues.apache.org/jira/browse/AXIS2C-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Samisa Abeysinghe resolved AXIS2C-321.
--------------------------------------
Resolution: Fixed
Acording to my tests this is fixed now
> Registered handlers not invoked at all on REST GET requests
> -----------------------------------------------------------
>
> Key: AXIS2C-321
> URL: https://issues.apache.org/jira/browse/AXIS2C-321
> Project: Axis2-C
> Issue Type: Bug
> Components: core/engine
> Affects Versions: 0.93, 0.94, Current (Nightly)
> Reporter: Jean-Sebastien Delfino
> Fix For: 1.0.0
>
>
> Modules registered in the Dispatch phase are not invoked at all by the engine during the processing of REST / HTTP GET requests.
> The following code hardcodes a call to the req_uri_disp dispatcher. Instead it should call the handlers registered in the Dispatch phase like is done for regular Web Service requests.
> AXIS2_EXTERN axis2_status_t AXIS2_CALL
> axis2_http_transport_utils_dispatch_and_verify(
> const axis2_env_t *env,
> axis2_msg_ctx_t *msg_ctx)
> {
> axis2_disp_t *req_uri_disp = NULL;
> axis2_handler_t *handler = NULL;
> AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
> AXIS2_PARAM_CHECK(env->error, msg_ctx, AXIS2_FAILURE);
> req_uri_disp = axis2_req_uri_disp_create(env);
> handler = AXIS2_DISP_GET_BASE(req_uri_disp, env);
> AXIS2_HANDLER_INVOKE(handler, env, msg_ctx);
> if(NULL == AXIS2_MSG_CTX_GET_SVC(msg_ctx, env) || NULL ==
> AXIS2_MSG_CTX_GET_OP(msg_ctx, env))
> {
> AXIS2_ERROR_SET(env->error, AXIS2_ERROR_SVC_OR_OP_NOT_FOUND,
> AXIS2_FAILURE);
> return AXIS2_FAILURE;
> }
> return AXIS2_SUCCESS;
> }
> This issue is blocking for us (the Tuscany project) and prevents us from using Axis2C to handle REST / GET requests.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org