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 10:52:11 UTC
svn commit: r367543 -
/webservices/axis2/trunk/c/test/core/engine/test_engine.c
Author: damitha
Date: Tue Jan 10 01:52:05 2006
New Revision: 367543
URL: http://svn.apache.org/viewcvs?rev=367543&view=rev
Log:
make some changes
Modified:
webservices/axis2/trunk/c/test/core/engine/test_engine.c
Modified: webservices/axis2/trunk/c/test/core/engine/test_engine.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/engine/test_engine.c?rev=367543&r1=367542&r2=367543&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/engine/test_engine.c (original)
+++ webservices/axis2/trunk/c/test/core/engine/test_engine.c Tue Jan 10 01:52:05 2006
@@ -2,6 +2,7 @@
#include <axis2_env.h>
#include <axis2_engine.h>
#include <axis2_conf_ctx.h>
+#include <axis2_msg_ctx.h>
int axis2_test_engine_send()
{
@@ -13,12 +14,33 @@
struct axis2_conf_ctx *conf_ctx;
struct axis2_msg_ctx *msg_ctx;
+ struct axis2_op_ctx *op_ctx;
+ struct axis2_op *op;
+ struct axis2_svc *svc;
+ struct axis2_svc_ctx *svc_ctx;
+ struct axis2_svc_grp *svc_grp;
+ struct axis2_svc_grp_ctx *svc_grp_ctx;
+ struct axis2_qname *qname;
+
conf_ctx = axis2_conf_ctx_create(&env, conf);
+
+ svc_grp = axis2_svc_grp_create(&env);
+ svc_grp_ctx = axis2_svc_grp_ctx_create(&env, svc_grp, conf_ctx);
+
+ qname = axis2_qname_create(&env, "name1", NULL, NULL);
+ svc = axis2_svc_create_with_qname(&env, qname);
+ svc_ctx = axis2_svc_ctx_create(&env, svc, svc_grp_ctx);
+
+ op = axis2_op_create(&env);
+ op_ctx = axis2_op_ctx_create(&env, op, svc_ctx);
msg_ctx = axis2_msg_ctx_create(&env, conf_ctx, NULL, NULL);
- axis2_engine_t *engine = axis2_engine_create(&env, conf_ctx);
+ AXIS2_MSG_CTX_SET_CONF_CTX(msg_ctx, &env, conf_ctx);
+ AXIS2_MSG_CTX_SET_OP_CTX(msg_ctx, &env, op_ctx);
+ AXIS2_MSG_CTX_SET_SVC_CTX(msg_ctx, &env, svc_ctx);
+ axis2_engine_t *engine = axis2_engine_create(&env, conf_ctx);
status = AXIS2_ENGINE_SEND(engine, &env, msg_ctx);
if(status != AXIS2_SUCCESS )
{