You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by da...@apache.org on 2006/07/20 09:34:46 UTC
svn commit: r423811 - in /webservices/sandesha/trunk/c:
include/sandesha2/sandesha2_spec_specific_consts.h src/util/msg_creator.c
src/util/spec_specific_consts.c
Author: damitha
Date: Thu Jul 20 00:34:45 2006
New Revision: 423811
URL: http://svn.apache.org/viewvc?rev=423811&view=rev
Log:
Added more methods to spec_specific_consts
Modified:
webservices/sandesha/trunk/c/include/sandesha2/sandesha2_spec_specific_consts.h
webservices/sandesha/trunk/c/src/util/msg_creator.c
webservices/sandesha/trunk/c/src/util/spec_specific_consts.c
Modified: webservices/sandesha/trunk/c/include/sandesha2/sandesha2_spec_specific_consts.h
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/include/sandesha2/sandesha2_spec_specific_consts.h?rev=423811&r1=423810&r2=423811&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/include/sandesha2/sandesha2_spec_specific_consts.h (original)
+++ webservices/sandesha/trunk/c/include/sandesha2/sandesha2_spec_specific_consts.h Thu Jul 20 00:34:45 2006
@@ -76,12 +76,12 @@
axis2_char_t *spec_version);
AXIS2_EXTERN axis2_char_t *AXIS2_CALL
-sandesha2_spec_specific_consts_get_create_seq_response_action(
+sandesha2_spec_specific_consts_get_create_seq_res_action(
const axis2_env_t *env,
axis2_char_t *spec_version);
axis2_char_t *AXIS2_CALL
-sandesha2_spec_specific_consts_get_create_seq_response_soap_action(
+sandesha2_spec_specific_consts_get_create_seq_res_soap_action(
const axis2_env_t *env,
axis2_char_t *spec_version);
@@ -91,7 +91,7 @@
axis2_char_t *spec_version);
axis2_char_t *AXIS2_CALL
-sandesha2_spec_specific_consts_get_close_seq_response_action(
+sandesha2_spec_specific_consts_get_close_seq_res_action(
const axis2_env_t *env,
axis2_char_t *spec_version);
Modified: webservices/sandesha/trunk/c/src/util/msg_creator.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/util/msg_creator.c?rev=423811&r1=423810&r2=423811&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/util/msg_creator.c (original)
+++ webservices/sandesha/trunk/c/src/util/msg_creator.c Thu Jul 20 00:34:45 2006
@@ -331,7 +331,7 @@
temp_om_node = AXIOM_SOAP_BODY_GET_BASE_NODE(temp_soap_body, env);
SANDESHA2_IMO_RM_ELEMENT_TO_OM_NODE((sandesha2_iom_rm_element_t *) response,
env, temp_om_node);
- temp_action = sandesha2_spec_specific_consts_get_create_seq_response_action(
+ temp_action = sandesha2_spec_specific_consts_get_create_seq_res_action(
env, rm_version);
AXIS2_MSG_CTX_SET_WSA_ACTION(out_msg, env, temp_action);
temp_action =
@@ -407,11 +407,11 @@
SANDESHA2_MSG_CTX_SET_SET_MSG_PART(close_seq_response, env,
SANDESHA2_MSG_PART_CLOSE_SEQ_RESPONSE, response);
rm_version = sandesha2_utils_get_rm_version(env, seq_id, storage_mgr);
- temp_action = sandesha2_spec_specific_consts_get_close_seq_response_action(
+ temp_action = sandesha2_spec_specific_consts_get_close_seq_res_action(
env, rm_version);
AXIS2_MSG_CTX_SET_WSA_ACTION(out_msg, env, temp_action);
temp_action =
- sandesha2_spec_specific_consts_get_close_seq_response_action(env,
+ sandesha2_spec_specific_consts_get_close_seq_res_action(env,
rm_version);
AXIS2_MSG_CTX_SET_SOAP_ACTION(out_msg, env, temp_action);
Modified: webservices/sandesha/trunk/c/src/util/spec_specific_consts.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/util/spec_specific_consts.c?rev=423811&r1=423810&r2=423811&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/util/spec_specific_consts.c (original)
+++ webservices/sandesha/trunk/c/src/util/spec_specific_consts.c Thu Jul 20 00:34:45 2006
@@ -131,6 +131,40 @@
}
axis2_char_t *AXIS2_CALL
+sandesha2_spec_specific_consts_get_create_seq_action(
+ const axis2_env_t *env,
+ axis2_char_t *spec_version)
+{
+ if (0 == AXIS2_STRCMP(SANDESHA2_SPEC_VERSION_1_0, spec_version))
+ {
+ return SANDESHA2_SPEC_2005_02_ACTION_CREATE_SEQ;
+ }
+ else if (0 == AXIS2_STRCMP(SANDESHA2_SPEC_VERSION_1_1, spec_version))
+ return SANDESHA2_SPEC_2005_10_ACTION_CREATE_SEQ;
+ else
+ AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_UNKNOWN_SPEC_ERROR_MESSAGE,
+ AXIS2_FAILURE);
+ return NULL;
+}
+
+axis2_char_t *AXIS2_CALL
+sandesha2_spec_specific_consts_get_create_seq_res_action(
+ const axis2_env_t *env,
+ axis2_char_t *spec_version)
+{
+ if (0 == AXIS2_STRCMP(SANDESHA2_SPEC_VERSION_1_0, spec_version))
+ {
+ return SANDESHA2_SPEC_2005_02_ACTION_CREATE_SEQ_RESPONSE;
+ }
+ else if (0 == AXIS2_STRCMP(SANDESHA2_SPEC_VERSION_1_1, spec_version))
+ return SANDESHA2_SPEC_2005_10_ACTION_CREATE_SEQ_RESPONSE;
+ else
+ AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_UNKNOWN_SPEC_ERROR_MESSAGE,
+ AXIS2_FAILURE);
+ return NULL;
+}
+
+axis2_char_t *AXIS2_CALL
sandesha2_spec_specific_consts_get_close_seq_action(
const axis2_env_t *env,
axis2_char_t *spec_version)
@@ -149,6 +183,26 @@
return NULL;
}
+axis2_char_t *AXIS2_CALL
+sandesha2_spec_specific_consts_get_close_seq_res_action(
+ const axis2_env_t *env,
+ axis2_char_t *spec_version)
+{
+ if (0 == AXIS2_STRCMP(SANDESHA2_SPEC_VERSION_1_0, spec_version))
+ {
+ AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_RM_SPEC_VERSION_DOES_NOT_DEFINE_A_SEQ_CLOSE_ACTION,
+ AXIS2_FAILURE);
+ return NULL;
+ }
+ else if (0 == AXIS2_STRCMP(SANDESHA2_SPEC_VERSION_1_1, spec_version))
+ return SANDESHA2_SPEC_2005_10_ACTION_CLOSE_SEQ_RESPONSE;
+ else
+ AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_UNKNOWN_SPEC_ERROR_MESSAGE,
+ AXIS2_FAILURE);
+ return NULL;
+}
+
+
axis2_char_t *AXIS2_CALL
sandesha2_spec_specific_consts_get_ack_request_action(
const axis2_env_t *env,
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org