axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r367976 - /webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c
Date Wed, 11 Jan 2006 09:08:06 GMT
Author: damitha
Date: Wed Jan 11 01:08:01 2006
New Revision: 367976

URL: http://svn.apache.org/viewcvs?rev=367976&view=rev
Log:
msg_ctx created

Modified:
    webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c

Modified: webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c?rev=367976&r1=367975&r2=367976&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c (original)
+++ webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c Wed Jan 11 01:08:01 2006
@@ -14,34 +14,38 @@
 
 void axis2_test_call_invoke_blocking()
 {
-	axis2_allocator_t *allocator = axis2_allocator_init (NULL);
-	axis2_env_t *env = axis2_env_create (allocator);
-    struct axis2_conf *conf = NULL;
-	conf = axis2_conf_create(&env);
-	struct axis2_conf_ctx *conf_ctx;
+	struct axis2_conf_ctx *conf_ctx = NULL;
 	struct axis2_msg_ctx *msg_ctx = NULL;
 	struct axis2_msg_ctx *msg_ctx_res = NULL;
-	struct axis2_op *op;
-	struct axis2_qname *qname;
-	struct axis2_svc *svc;
-	struct axis2_svc_ctx *svc_ctx;
-	struct axis2_svc_grp_ctx *svc_grp_ctx;
-	struct axis2_call *call;
-	struct axis2_svc_grp *svc_grp;
+	struct axis2_op *op = NULL;
+	struct axis2_qname *qname = NULL;
+	struct axis2_svc *svc = NULL;
+	struct axis2_svc_ctx *svc_ctx = NULL;
+	struct axis2_svc_grp_ctx *svc_grp_ctx = NULL;
+	struct axis2_call *call = NULL;
+	struct axis2_svc_grp *svc_grp = NULL;
+    struct axis2_conf *conf = NULL;
 	
+	axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+	axis2_env_t *env = axis2_env_create (allocator);
+
+	conf = axis2_conf_create(&env);
 	conf_ctx = axis2_conf_ctx_create(&env, conf);
 
 	op  = axis2_op_create(&env);
 
 	qname = axis2_qname_create(&env, "name1", NULL, NULL);
+	svc = axis2_svc_create_with_qname(&env, qname);
 
 	svc_grp = axis2_svc_grp_create(&env);
-	svc = axis2_svc_create_with_qname(&env, qname);
 	svc_grp_ctx = axis2_svc_grp_ctx_create(&env, svc_grp, conf_ctx);
 
 	svc_ctx = axis2_svc_ctx_create(&env, svc, svc_grp_ctx);
 
 	call = axis2_call_create(&env, svc_ctx);
+
+	msg_ctx = axis2_msg_ctx_create(&env, conf_ctx, NULL, NULL);
+
 	msg_ctx_res = axis2_call_invoke_blocking(call, &env, op, msg_ctx);
 
     if (msg_ctx_res)



Mime
View raw message