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 da...@apache.org on 2006/01/10 09:35:40 UTC
svn commit: r367522 - in /webservices/axis2/trunk/c/include: axis2_error.h
axis2_msg_recv.h axis2_op_ctx.h axis2_svc.h
Author: damitha
Date: Tue Jan 10 00:35:31 2006
New Revision: 367522
URL: http://svn.apache.org/viewcvs?rev=367522&view=rev
Log:
Removed no argument create method from axis2_svc.h
Added some error codes
Modified:
webservices/axis2/trunk/c/include/axis2_error.h
webservices/axis2/trunk/c/include/axis2_msg_recv.h
webservices/axis2/trunk/c/include/axis2_op_ctx.h
webservices/axis2/trunk/c/include/axis2_svc.h
Modified: webservices/axis2/trunk/c/include/axis2_error.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_error.h?rev=367522&r1=367521&r2=367522&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_error.h (original)
+++ webservices/axis2/trunk/c/include/axis2_error.h Tue Jan 10 00:35:31 2006
@@ -364,7 +364,9 @@
AXIS2_ERROR_INVALID_MODULE,
AXIS2_ERROR_MODULE_CREATION_FAILED,
AXIS2_ERROR_SOAP_ENVELOPE_MUST_HAVE_BODY_ELEMENT,
- AXIS2_ERROR_INVALID_MODULE_CONF
+ AXIS2_ERROR_INVALID_MODULE_CONF,
+ /* Invalid messge addition , operation context completed */
+ AXIS2_ERROR_INVALID_MESSAGE_ADDITION
};
/** @} */
Modified: webservices/axis2/trunk/c/include/axis2_msg_recv.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_msg_recv.h?rev=367522&r1=367521&r2=367522&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_msg_recv.h (original)
+++ webservices/axis2/trunk/c/include/axis2_msg_recv.h Tue Jan 10 00:35:31 2006
@@ -28,6 +28,7 @@
#include <axis2_msg_ctx.h>
#include <axis2_op_ctx.h>
#include <axis2.h>
+#include <axis2_svc_skeleton.h>
#ifdef __cplusplus
extern "C"
@@ -64,8 +65,7 @@
axis2_status_t (AXIS2_CALL *receive) (axis2_msg_recv_t *msg_recv,
axis2_env_t **env,
- struct axis2_msg_ctx *msg_ctx,
- void* derived);
+ struct axis2_msg_ctx *msg_ctx);
axis2_status_t (AXIS2_CALL *invoke_in_business_logic) (axis2_msg_recv_t *msg_recv,
axis2_env_t **env,
struct axis2_msg_ctx *in_msg_ctx);
@@ -76,6 +76,37 @@
axis2_status_t (AXIS2_CALL *set_in_only)(axis2_msg_recv_t *msg_recv,
axis2_env_t **env,
axis2_bool_t in_only);
+
+ /**
+ * Method makeNewServiceObject
+ *
+ * @param msgContext
+ * @return
+ */
+ axis2_svc_skeleton_t * (AXIS2_CALL *
+ make_new_svc_obj) (void *msg_recv,
+ axis2_env_t **env,
+ struct axis2_msg_ctx *msg_ctx);
+
+ /**
+ * Method getTheImplementationObject
+ *
+ * @param msgContext
+ * @return
+ */
+ axis2_svc_skeleton_t * (AXIS2_CALL *
+ get_impl_obj) (void *msg_recv,
+ axis2_env_t **env,
+ struct axis2_msg_ctx *msg_ctx);
+
+ axis2_status_t (AXIS2_CALL *
+ set_scope) (axis2_msg_recv_t *msg_recv,
+ axis2_env_t **env,
+ axis2_char_t *scope);
+
+ axis2_char_t * (AXIS2_CALL *
+ get_scope) (axis2_msg_recv_t *msg_recv,
+ axis2_env_t **env);
};
/**
@@ -93,10 +124,31 @@
/************************** Start of function macros **************************/
#define AXIS2_MSG_RECV_FREE(msg_recv, env) (msg_recv->ops->free (msg_recv, env))
+
#define AXIS2_MSG_RECV_RECEIVE(msg_recv, env, msg_ctx, derived) \
(msg_recv->ops->receive (msg_recv, env, msg_ctx, derived))
+
#define AXIS2_MSG_RECV_SET_IN_ONLY(msg_recv, env, in_only) \
(msg_recv->ops->set_in_only(msg_recv, env, in_only))
+
+#define AXIS2_MSG_RECV_INVOKE_IN_BUSINESS_LOGIC(msg_recv, env, in_msg_ctx) \
+ (msg_recv->ops->invoke_in_business_logic(msg_recv, env, in_msg_ctx))
+
+#define AXIS2_MSG_RECV_INVOKE_IN_OUT_BUSINESS_LOGIC(msg_recv, env, in_msg_ctx, \
+ out_msg_ctx) (msg_recv->ops->invoke_in_out_business_logic(msg_recv, \
+ env, in_msg_ctx, out_msg_ctx))
+
+#define AXIS2_MSG_RECV_MAKE_NEW_SVC_OBJ(msg_recv, env, msg_ctx) \
+ (msg_recv->ops->make_new_svc_obj(msg_recv, env, msg_ctx))
+
+#define AXIS2_MSG_RECV_GET_IMPL_OBJ(msg_recv, env, msg_ctx) \
+ (msg_recv->ops->get_impl_obj(msg_recv, env, msg_ctx))
+
+#define AXIS2_MSG_RECV_SET_SCOPE(msg_recv, env, scope) \
+ (msg_recv->ops->set_scope(msg_recv, env, scope))
+
+#define AXIS2_MSG_RECV_GET_SCOPE(msg_recv, env) \
+ (msg_recv->ops->get_scope(msg_recv, env))
/************************** End of function macros ****************************/
Modified: webservices/axis2/trunk/c/include/axis2_op_ctx.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_op_ctx.h?rev=367522&r1=367521&r2=367522&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_op_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_op_ctx.h Tue Jan 10 00:35:31 2006
@@ -160,7 +160,7 @@
#define AXIS2_OP_CTX_ADD_MSG_CTX(op_ctx, env, msg_ctx) ((op_ctx)->ops->add_msg_ctx(op_ctx, env, msg_ctx))
#define AXIS2_OP_CTX_GET_MSG_CTX(op_ctx, env, message_id) ((op_ctx)->ops->get_msg_ctx(op_ctx, env, message_id))
#define AXIS2_OP_CTX_GET_IS_COMPLETE(op_ctx, env) ((op_ctx)->ops->get_is_complete(op_ctx, env))
-#define AXIS2_OP_CTX_SET_IS_COMPLETE(op_ctx, env, is_complete) ((op_ctx)->ops->set_is_complete(op_ctx, env, is_complete))
+#define AXIS2_OP_CTX_SET_IS_COMPLETE(op_ctx, env, is_complete) ((op_ctx)->ops->set_complete(op_ctx, env, is_complete))
#define AXIS2_OP_CTX_CLEANUP(op_ctx, env) ((op_ctx)->ops->cleanup(op_ctx, env))
#define AXIS2_OP_CTX_SET_PARENT(op_ctx, env, svc_ctx) ((op_ctx)->ops->set_parent(op_ctx, env, svc_ctx))
#define AXIS2_OP_CTX_GET_MSG_CTX_MAP(op_ctx, env) ((op_ctx)->ops->get_msg_ctx_map(op_ctx, env))
Modified: webservices/axis2/trunk/c/include/axis2_svc.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_svc.h?rev=367522&r1=367521&r2=367522&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_svc.h (original)
+++ webservices/axis2/trunk/c/include/axis2_svc.h Tue Jan 10 00:35:31 2006
@@ -419,13 +419,6 @@
};
/**
- * Creates service struct
- * @return pointer to newly created service
- */
-AXIS2_DECLARE(axis2_svc_t *)
-axis2_svc_create (axis2_env_t **env);
-
-/**
* Creates service struct with qname
* @param qname ualified name
* @return pointer to newly created service