You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2007/03/20 05:57:25 UTC
svn commit: r520277 - in /webservices/axis2/trunk/c/modules/core/engine:
req_uri_disp.c soap_action_disp.c soap_body_disp.c
Author: dinesh
Date: Mon Mar 19 21:57:24 2007
New Revision: 520277
URL: http://svn.apache.org/viewvc?view=rev&rev=520277
Log:
code formatted
Modified:
webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c
webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c
webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c
Modified: webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c?view=diff&rev=520277&r1=520276&r2=520277
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c Mon Mar 19 21:57:24 2007
@@ -55,7 +55,8 @@
AXIS2_ENV_CHECK(env, NULL);
- name = axis2_string_create_const(env, (axis2_char_t **)&AXIS2_REQ_URI_DISP_NAME);
+ name = axis2_string_create_const(env,
+ (axis2_char_t **)&AXIS2_REQ_URI_DISP_NAME);
disp = axis2_disp_create(env, name);
if (!disp)
@@ -100,7 +101,8 @@
{
axis2_char_t **url_tokens = NULL;
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
- "Checking for service using target endpoint address : %s", address);
+ "Checking for service using target endpoint address : %s",
+ address);
url_tokens = axis2_parse_request_url_for_svc_and_op(env, address);
@@ -165,9 +167,12 @@
{
axis2_qname_t *op_qname = NULL;
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
- "Checking for operation using target endpoint uri fragment : %s", url_tokens[1]);
+ "Checking for operation using \
+ target endpoint uri fragment : %s",
+ url_tokens[1]);
op_qname = axis2_qname_create(env, url_tokens[1], NULL, NULL);
- op = AXIS2_SVC_GET_OP_WITH_NAME(svc, env, axis2_qname_get_localpart(op_qname, env));
+ op = AXIS2_SVC_GET_OP_WITH_NAME(svc, env,
+ axis2_qname_get_localpart(op_qname, env));
axis2_qname_free(op_qname, env);
if (op)
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
@@ -195,6 +200,5 @@
axis2_msg_ctx_set_find_svc(msg_ctx, env, axis2_req_uri_disp_find_svc);
axis2_msg_ctx_set_find_op(msg_ctx, env, axis2_req_uri_disp_find_op);
-
return axis2_disp_find_svc_and_op(handler, env, msg_ctx);
}
Modified: webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c?view=diff&rev=520277&r1=520276&r2=520277
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c Mon Mar 19 21:57:24 2007
@@ -55,7 +55,8 @@
AXIS2_ENV_CHECK(env, NULL);
- name = axis2_string_create_const(env, (axis2_char_t**)&AXIS2_SOAP_ACTION_DISP_NAME);
+ name = axis2_string_create_const(env,
+ (axis2_char_t**)&AXIS2_SOAP_ACTION_DISP_NAME);
disp = axis2_disp_create(env, name);
if (!disp)
@@ -67,7 +68,8 @@
handler = axis2_disp_get_base(disp, env);
if (!handler)
{
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_HANDLER_STATE, AXIS2_FAILURE);
+ AXIS2_ERROR_SET(env->error,
+ AXIS2_ERROR_INVALID_HANDLER_STATE, AXIS2_FAILURE);
return NULL;
}
@@ -82,10 +84,8 @@
axiom_soap_action_disp_find_svc(axis2_msg_ctx_t *msg_ctx,
const axis2_env_t *env)
{
- AXIS2_ENV_CHECK(env, NULL);
-
- AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "Checking for service using SOAPAction is a TODO item");
-
+ AXIS2_LOG_DEBUG(env->log,
+ AXIS2_LOG_SI, "Checking for service using SOAPAction is a TODO item");
return NULL;
}
@@ -101,14 +101,14 @@
AXIS2_ENV_CHECK(env, NULL);
AXIS2_PARAM_CHECK(env->error, svc, NULL);
- action = axis2_string_get_buffer( axis2_msg_ctx_get_soap_action(msg_ctx, env), env);
+ action = axis2_string_get_buffer(
+ axis2_msg_ctx_get_soap_action(msg_ctx, env), env);
if (action)
{
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
"Checking for operation using SOAPAction : %s", action);
- /*op = AXIS2_SVC_GET_OP_BY_SOAP_ACTION(svc, env, action);*/
if (!op)
{
const axis2_char_t * op_name = NULL;
@@ -132,7 +132,6 @@
if (op)
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "Operation found using SOAPAction");
}
-
return op;
}
Modified: webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c?view=diff&rev=520277&r1=520276&r2=520277
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c Mon Mar 19 21:57:24 2007
@@ -57,7 +57,8 @@
AXIS2_ENV_CHECK(env, NULL);
- name = axis2_string_create_const(env, (axis2_char_t**)&AXIS2_SOAP_MESSAGE_BODY_DISP_NAME);
+ name = axis2_string_create_const(env,
+ (axis2_char_t**)&AXIS2_SOAP_MESSAGE_BODY_DISP_NAME);
disp = axis2_disp_create(env, name);
if (!disp)
@@ -108,21 +109,29 @@
if (AXIOM_NODE_GET_NODE_TYPE(body_first_child_node, env) == AXIOM_ELEMENT)
{
axiom_element_t *element = NULL;
- element = (axiom_element_t *)AXIOM_NODE_GET_DATA_ELEMENT(body_first_child_node, env);
+ element = (axiom_element_t *)AXIOM_NODE_GET_DATA_ELEMENT(
+ body_first_child_node, env);
if (element)
{
axiom_namespace_t *ns =
- axiom_element_get_namespace(element, env, body_first_child_node);
+ axiom_element_get_namespace(
+ element, env, body_first_child_node);
if (ns)
{
- axis2_char_t *uri = axiom_namespace_get_uri(ns, env);
+ axis2_char_t *uri =
+ axiom_namespace_get_uri(ns, env);
if (uri)
{
axis2_char_t **url_tokens = NULL;
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
- "Checking for service using SOAP message body's first child's namespace URI : %s", uri);
-
- url_tokens = axis2_parse_request_url_for_svc_and_op(env, uri);
+ "Checking for service \
+ using SOAP message body's\
+ first child's namespace \
+ URI : %s",uri);
+
+ url_tokens =
+ axis2_parse_request_url_for_svc_and_op(
+ env, uri);
if (url_tokens)
{
@@ -130,17 +139,21 @@
{
axis2_conf_ctx_t *conf_ctx = NULL;
- conf_ctx = axis2_msg_ctx_get_conf_ctx(msg_ctx, env);
+ conf_ctx = axis2_msg_ctx_get_conf_ctx(
+ msg_ctx, env);
if (conf_ctx)
{
axis2_conf_t *conf = NULL;
- conf = axis2_conf_ctx_get_conf(conf_ctx, env);
+ conf = axis2_conf_ctx_get_conf(
+ conf_ctx, env);
if (conf)
{
- svc = axis2_conf_get_svc(conf, env, url_tokens[0]);
+ svc = axis2_conf_get_svc(
+ conf, env, url_tokens[0]);
if (svc)
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
- "Service found using SOAP message body's first child's namespace URI");
+ "Service found \
+using SOAP message body's first child's namespace URI");
}
}
AXIS2_FREE(env->allocator, url_tokens[0]);
@@ -176,38 +189,43 @@
soap_envelope = axis2_msg_ctx_get_soap_envelope(msg_ctx, env);
if (soap_envelope)
{
- axiom_soap_body_t *soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
+ axiom_soap_body_t *soap_body =
+ axiom_soap_envelope_get_body(soap_envelope, env);
if (soap_body)
{
- axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
+ axiom_node_t *body_node =
+ axiom_soap_body_get_base_node(soap_body, env);
if (body_node)
{
axiom_node_t *body_first_child_node =
AXIOM_NODE_GET_FIRST_ELEMENT(body_node, env);
-/* while (AXIOM_NODE_GET_NODE_TYPE(body_first_child_node, env) != AXIOM_ELEMENT)
- body_first_child_node = AXIOM_NODE_GET_NEXT_SIBLING (body_first_child_node, env);*/
-
if (body_first_child_node)
{
- if (AXIOM_NODE_GET_NODE_TYPE(body_first_child_node, env) == AXIOM_ELEMENT)
+ if (AXIOM_NODE_GET_NODE_TYPE(body_first_child_node, env) ==
+ AXIOM_ELEMENT)
{
axiom_element_t *element = NULL;
- element = (axiom_element_t *)AXIOM_NODE_GET_DATA_ELEMENT(body_first_child_node, env);
+ element = (axiom_element_t *)AXIOM_NODE_GET_DATA_ELEMENT(
+ body_first_child_node, env);
if (element)
{
- axis2_char_t *element_name = axiom_element_get_localname(element, env);
+ axis2_char_t *element_name = axiom_element_get_localname(
+ element, env);
if (element_name)
{
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
- "Checking for operation using SOAP message body's first child's local name : %s",
+ "Checking for operation using \
+SOAP message body's first child's local name : %s",
element_name);
- op = AXIS2_SVC_GET_OP_WITH_NAME(svc, env, element_name);
+ op = AXIS2_SVC_GET_OP_WITH_NAME(
+ svc, env, element_name);
if (op)
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
- "Operation found using SOAP message body's first child's local name");
+ "Operation found using SOAP \
+message body's first child's local name");
}
}
@@ -226,10 +244,7 @@
struct axis2_msg_ctx *msg_ctx)
{
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-
axis2_msg_ctx_set_find_svc(msg_ctx, env, axiom_soap_body_disp_find_svc);
axis2_msg_ctx_set_find_op(msg_ctx, env, axiom_soap_body_disp_find_op);
-
return axis2_disp_find_svc_and_op(handler, env, msg_ctx);
}
-
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org