You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/06/04 05:09:41 UTC
svn commit: r411506 [18/27] - in /webservices/axis2/trunk/c: axiom/include/
axiom/src/attachments/ axiom/src/om/ axiom/src/parser/guththila/
axiom/src/parser/libxml2/ axiom/src/soap/ axiom/test/om/ axiom/test/soap/
guththila/src/ include/ modules/core/...
Modified: webservices/axis2/trunk/c/samples/server/math/math.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/math/math.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/math/math.c (original)
+++ webservices/axis2/trunk/c/samples/server/math/math.c Sat Jun 3 20:09:08 2006
@@ -65,7 +65,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
param2_node = AXIS2_OM_NODE_GET_NEXT_SIBLING(param1_node, env);
if (!param2_node)
{
@@ -96,7 +96,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
if (param1_str && param2_str)
{
long int result = 0;
@@ -177,7 +177,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
param2_node = AXIS2_OM_NODE_GET_NEXT_SIBLING(param1_node, env);
if (!param2_node)
{
@@ -208,7 +208,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
if (param1_str && param2_str)
{
long int result = 0;
@@ -290,7 +290,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
param2_node = AXIS2_OM_NODE_GET_NEXT_SIBLING(param1_node, env);
if (!param2_node)
{
@@ -321,7 +321,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
if (param1_str && param2_str)
{
long int result = 0;
@@ -403,7 +403,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
param2_node = AXIS2_OM_NODE_GET_NEXT_SIBLING(param1_node, env);
if (!param2_node)
{
@@ -434,7 +434,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
if (param1_str && param2_str)
{
long int result = 0;
Modified: webservices/axis2/trunk/c/samples/server/math/math_skeleton.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/math/math_skeleton.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/math/math_skeleton.c (original)
+++ webservices/axis2/trunk/c/samples/server/math/math_skeleton.c Sat Jun 3 20:09:08 2006
@@ -143,7 +143,7 @@
AXIS2_EXPORT int axis2_get_instance(struct axis2_svc_skeleton **inst,
const axis2_env_t *env)
{
- *inst = axis2_math_create(env);
+ *inst = axis2_math_create(env);
/*if(NULL != *inst)
{
status = *inst->init();
@@ -160,8 +160,8 @@
const axis2_env_t *env)
{
axis2_status_t status = AXIS2_FAILURE;
- if (inst)
- {
+ if (inst)
+ {
status = AXIS2_SVC_SKELETON_FREE(inst, env);
}
return status;
Modified: webservices/axis2/trunk/c/samples/server/mtom/mtom.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/mtom/mtom.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/mtom/mtom.c (original)
+++ webservices/axis2/trunk/c/samples/server/mtom/mtom.c Sat Jun 3 20:09:08 2006
@@ -101,7 +101,7 @@
printf("Echo client ERROR: invalid XML in request\n");
return NULL;
}
-
+
return ret_node;
}
Modified: webservices/axis2/trunk/c/samples/server/mtom/mtom_skeleton.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/mtom/mtom_skeleton.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/mtom/mtom_skeleton.c (original)
+++ webservices/axis2/trunk/c/samples/server/mtom/mtom_skeleton.c Sat Jun 3 20:09:08 2006
@@ -152,7 +152,7 @@
axis2_get_instance(axis2_svc_skeleton_t **inst,
const axis2_env_t *env)
{
- *inst = axis2_mtom_create(env);
+ *inst = axis2_mtom_create(env);
if(!(*inst))
{
return AXIS2_FAILURE;
@@ -166,8 +166,8 @@
const axis2_env_t *env)
{
axis2_status_t status = AXIS2_FAILURE;
- if (inst)
- {
+ if (inst)
+ {
status = AXIS2_SVC_SKELETON_FREE(inst, env);
}
return status;
Modified: webservices/axis2/trunk/c/samples/server/notify/notify.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/notify/notify.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/notify/notify.c (original)
+++ webservices/axis2/trunk/c/samples/server/notify/notify.c Sat Jun 3 20:09:08 2006
@@ -57,7 +57,7 @@
printf("Echo client ERROR: invalid XML in request\n");
return;
}
-
+
return;
}
Modified: webservices/axis2/trunk/c/samples/server/notify/notify_skeleton.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/notify/notify_skeleton.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/notify/notify_skeleton.c (original)
+++ webservices/axis2/trunk/c/samples/server/notify/notify_skeleton.c Sat Jun 3 20:09:08 2006
@@ -154,7 +154,7 @@
axis2_get_instance(axis2_svc_skeleton_t **inst,
const axis2_env_t *env)
{
- *inst = axis2_notify_create(env);
+ *inst = axis2_notify_create(env);
if(!(*inst))
{
return AXIS2_FAILURE;
@@ -168,8 +168,8 @@
const axis2_env_t *env)
{
axis2_status_t status = AXIS2_FAILURE;
- if (inst)
- {
+ if (inst)
+ {
status = AXIS2_SVC_SKELETON_FREE(inst, env);
}
return status;
Modified: webservices/axis2/trunk/c/samples/server/sg_math/add.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/sg_math/add.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/sg_math/add.c (original)
+++ webservices/axis2/trunk/c/samples/server/sg_math/add.c Sat Jun 3 20:09:08 2006
@@ -66,7 +66,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
param2_node = AXIS2_OM_NODE_GET_NEXT_SIBLING(param1_node, env);
if (!param2_node)
{
@@ -97,7 +97,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
if (param1_str && param2_str)
{
long int result = 0;
Modified: webservices/axis2/trunk/c/samples/server/sg_math/add_skeleton.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/sg_math/add_skeleton.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/sg_math/add_skeleton.c (original)
+++ webservices/axis2/trunk/c/samples/server/sg_math/add_skeleton.c Sat Jun 3 20:09:08 2006
@@ -128,7 +128,7 @@
AXIS2_EXPORT int axis2_get_instance(struct axis2_svc_skeleton **inst,
const axis2_env_t *env)
{
- *inst = axis2_add_create(env);
+ *inst = axis2_add_create(env);
if(!(*inst))
{
return AXIS2_FAILURE;
@@ -141,8 +141,8 @@
const axis2_env_t *env)
{
axis2_status_t status = AXIS2_FAILURE;
- if (inst)
- {
+ if (inst)
+ {
status = AXIS2_SVC_SKELETON_FREE(inst, env);
}
return status;
Modified: webservices/axis2/trunk/c/samples/server/sg_math/div.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/sg_math/div.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/sg_math/div.c (original)
+++ webservices/axis2/trunk/c/samples/server/sg_math/div.c Sat Jun 3 20:09:08 2006
@@ -65,7 +65,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
param2_node = AXIS2_OM_NODE_GET_NEXT_SIBLING(param1_node, env);
if (!param2_node)
{
@@ -96,7 +96,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
if (param1_str && param2_str)
{
long int result = 0;
Modified: webservices/axis2/trunk/c/samples/server/sg_math/div_skeleton.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/sg_math/div_skeleton.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/sg_math/div_skeleton.c (original)
+++ webservices/axis2/trunk/c/samples/server/sg_math/div_skeleton.c Sat Jun 3 20:09:08 2006
@@ -128,7 +128,7 @@
AXIS2_EXPORT int axis2_get_instance(struct axis2_svc_skeleton **inst,
const axis2_env_t *env)
{
- *inst = axis2_div_create(env);
+ *inst = axis2_div_create(env);
if(!(*inst))
{
return AXIS2_FAILURE;
@@ -141,8 +141,8 @@
const axis2_env_t *env)
{
axis2_status_t status = AXIS2_FAILURE;
- if (inst)
- {
+ if (inst)
+ {
status = AXIS2_SVC_SKELETON_FREE(inst, env);
}
return status;
Modified: webservices/axis2/trunk/c/samples/server/sg_math/mul.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/sg_math/mul.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/sg_math/mul.c (original)
+++ webservices/axis2/trunk/c/samples/server/sg_math/mul.c Sat Jun 3 20:09:08 2006
@@ -65,7 +65,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
param2_node = AXIS2_OM_NODE_GET_NEXT_SIBLING(param1_node, env);
if (!param2_node)
{
@@ -96,7 +96,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
if (param1_str && param2_str)
{
long int result = 0;
Modified: webservices/axis2/trunk/c/samples/server/sg_math/mul_skeleton.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/sg_math/mul_skeleton.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/sg_math/mul_skeleton.c (original)
+++ webservices/axis2/trunk/c/samples/server/sg_math/mul_skeleton.c Sat Jun 3 20:09:08 2006
@@ -128,7 +128,7 @@
AXIS2_EXPORT int axis2_get_instance(struct axis2_svc_skeleton **inst,
const axis2_env_t *env)
{
- *inst = axis2_mul_create(env);
+ *inst = axis2_mul_create(env);
if(!(*inst))
{
return AXIS2_FAILURE;
@@ -141,8 +141,8 @@
const axis2_env_t *env)
{
axis2_status_t status = AXIS2_FAILURE;
- if (inst)
- {
+ if (inst)
+ {
status = AXIS2_SVC_SKELETON_FREE(inst, env);
}
return status;
Modified: webservices/axis2/trunk/c/samples/server/sg_math/sub.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/sg_math/sub.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/sg_math/sub.c (original)
+++ webservices/axis2/trunk/c/samples/server/sg_math/sub.c Sat Jun 3 20:09:08 2006
@@ -65,7 +65,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
param2_node = AXIS2_OM_NODE_GET_NEXT_SIBLING(param1_node, env);
if (!param2_node)
{
@@ -96,7 +96,7 @@
printf("Math service ERROR: invalid XML in request\n");
return NULL;
}
-
+
if (param1_str && param2_str)
{
long int result = 0;
Modified: webservices/axis2/trunk/c/samples/server/sg_math/sub_skeleton.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/sg_math/sub_skeleton.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/sg_math/sub_skeleton.c (original)
+++ webservices/axis2/trunk/c/samples/server/sg_math/sub_skeleton.c Sat Jun 3 20:09:08 2006
@@ -128,7 +128,7 @@
AXIS2_EXPORT int axis2_get_instance(struct axis2_svc_skeleton **inst,
const axis2_env_t *env)
{
- *inst = axis2_sub_create(env);
+ *inst = axis2_sub_create(env);
if(!(*inst))
{
return AXIS2_FAILURE;
@@ -141,8 +141,8 @@
const axis2_env_t *env)
{
axis2_status_t status = AXIS2_FAILURE;
- if (inst)
- {
+ if (inst)
+ {
status = AXIS2_SVC_SKELETON_FREE(inst, env);
}
return status;
Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking.c Sat Jun 3 20:09:08 2006
@@ -69,7 +69,7 @@
{
printf("Error creating service client\n");
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
- " %d :: %s", env->error->error_number,
+ " %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
}
@@ -92,8 +92,8 @@
}
else
{
- AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
- " %d :: %s", env->error->error_number,
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
+ " %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
printf("echo client invoke FAILED!\n");
}
Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_addr.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_addr.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_addr.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_addr.c Sat Jun 3 20:09:08 2006
@@ -71,7 +71,7 @@
{
printf("Error creating service client\n");
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
- " %d :: %s", env->error->error_number,
+ " %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
}
@@ -97,8 +97,8 @@
}
else
{
- AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
- " %d :: %s", env->error->error_number,
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
+ " %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
printf("echo client invoke FAILED!\n");
}
Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_dual.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_dual.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_dual.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_dual.c Sat Jun 3 20:09:08 2006
@@ -77,7 +77,7 @@
{
printf("Error creating service client\n");
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
- " %d :: %s", env->error->error_number,
+ " %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
}
@@ -102,8 +102,8 @@
}
else
{
- AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
- " %d :: %s", env->error->error_number,
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
+ " %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
printf("echo client invoke FAILED!\n");
}
Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_soap11.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_soap11.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_soap11.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_soap11.c Sat Jun 3 20:09:08 2006
@@ -70,7 +70,7 @@
{
printf("Error creating service client\n");
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
- " %d :: %s", env->error->error_number,
+ " %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
}
@@ -93,8 +93,8 @@
}
else
{
- AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
- " %d :: %s", env->error->error_number,
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
+ " %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
printf("echo client invoke FAILED!\n");
}
Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking.c Sat Jun 3 20:09:08 2006
@@ -84,7 +84,7 @@
{
printf("Error creating service client\n");
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
- " %d :: %s", env->error->error_number,
+ " %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
}
@@ -97,12 +97,12 @@
/* Create the callback object with default on_complete and on_error
callback functions */
callback = axis2_callback_create(env);
-
- /* Set our on_complete fucntion pointer to the callback object */
- AXIS2_CALLBACK_SET_ON_COMPLETE(callback, echo_callback_on_complete);
+
+ /* Set our on_complete fucntion pointer to the callback object */
+ AXIS2_CALLBACK_SET_ON_COMPLETE(callback, echo_callback_on_complete);
- /* Set our on_error function pointer to the callback object */
- AXIS2_CALLBACK_SET_ON_ERROR(callback, echo_callback_on_error);
+ /* Set our on_error function pointer to the callback object */
+ AXIS2_CALLBACK_SET_ON_ERROR(callback, echo_callback_on_error);
/* Send request */
@@ -110,17 +110,17 @@
payload, callback);
/** Wait till callback is complete. Simply keep the parent thread running
- until our on_complete or on_error is invoked */
- while(count < 30 )
- {
- if (isComplete)
- {
- /* We are done with the callback */
- break;
- }
+ until our on_complete or on_error is invoked */
+ while(count < 30 )
+ {
+ if (isComplete)
+ {
+ /* We are done with the callback */
+ break;
+ }
AXIS2_SLEEP(1);
count++;
- }
+ }
if (!(count < 30))
{
@@ -140,25 +140,25 @@
echo_callback_on_complete(struct axis2_callback *callback,
const axis2_env_t *env)
{
- /** SOAP response has arrived here; get the soap envelope
- from the callback object and do whatever you want to do with it */
-
- axis2_soap_envelope_t *soap_envelope = NULL;
- axis2_om_node_t *ret_node = NULL;
+ /** SOAP response has arrived here; get the soap envelope
+ from the callback object and do whatever you want to do with it */
+
+ axis2_soap_envelope_t *soap_envelope = NULL;
+ axis2_om_node_t *ret_node = NULL;
axis2_status_t status = AXIS2_SUCCESS;
-
- printf("inside on_complete_callback function\n");
-
- soap_envelope = AXIS2_CALLBACK_GET_ENVELOPE(callback, env);
-
- if (!soap_envelope)
- {
- AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
+
+ printf("inside on_complete_callback function\n");
+
+ soap_envelope = AXIS2_CALLBACK_GET_ENVELOPE(callback, env);
+
+ if (!soap_envelope)
+ {
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
" %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
- printf("echo stub invoke FAILED!\n");
- status = AXIS2_FAILURE;
- }
+ printf("echo stub invoke FAILED!\n");
+ status = AXIS2_FAILURE;
+ }
else
{
ret_node = AXIS2_SOAP_ENVELOPE_GET_BASE_NODE(soap_envelope, env);
@@ -181,7 +181,7 @@
}
}
isComplete = 1;
- return status;
+ return status;
}
axis2_status_t AXIS2_CALL
@@ -189,9 +189,9 @@
const axis2_env_t *env,
int exception)
{
- /** take necessary action on error */
- printf("\necho client invike FAILED. Error code:%d ::%s", exception,
- AXIS2_ERROR_GET_MESSAGE(env->error));
- isComplete = 1;
- return AXIS2_SUCCESS;
+ /** take necessary action on error */
+ printf("\necho client invike FAILED. Error code:%d ::%s", exception,
+ AXIS2_ERROR_GET_MESSAGE(env->error));
+ isComplete = 1;
+ return AXIS2_SUCCESS;
}
Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking_dual.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking_dual.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking_dual.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking_dual.c Sat Jun 3 20:09:08 2006
@@ -92,7 +92,7 @@
{
printf("Error creating service client\n");
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
- " %d :: %s", env->error->error_number,
+ " %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
}
@@ -107,12 +107,12 @@
/* Create the callback object with default on_complete and on_error
callback functions */
callback = axis2_callback_create(env);
-
- /* Set our on_complete fucntion pointer to the callback object */
- AXIS2_CALLBACK_SET_ON_COMPLETE(callback, echo_callback_on_complete);
+
+ /* Set our on_complete fucntion pointer to the callback object */
+ AXIS2_CALLBACK_SET_ON_COMPLETE(callback, echo_callback_on_complete);
- /* Set our on_error function pointer to the callback object */
- AXIS2_CALLBACK_SET_ON_ERROR(callback, echo_callback_on_error);
+ /* Set our on_error function pointer to the callback object */
+ AXIS2_CALLBACK_SET_ON_ERROR(callback, echo_callback_on_error);
/* Send request */
@@ -120,17 +120,17 @@
payload, callback);
/** Wait till callback is complete. Simply keep the parent thread running
- until our on_complete or on_error is invoked */
- while(count < 30 )
- {
- if (isComplete)
- {
- /* We are done with the callback */
- break;
- }
+ until our on_complete or on_error is invoked */
+ while(count < 30 )
+ {
+ if (isComplete)
+ {
+ /* We are done with the callback */
+ break;
+ }
AXIS2_SLEEP(1);
count++;
- }
+ }
if (!(count < 30))
{
@@ -150,25 +150,25 @@
echo_callback_on_complete(struct axis2_callback *callback,
const axis2_env_t *env)
{
- /** SOAP response has arrived here; get the soap envelope
- from the callback object and do whatever you want to do with it */
-
- axis2_soap_envelope_t *soap_envelope = NULL;
- axis2_om_node_t *ret_node = NULL;
+ /** SOAP response has arrived here; get the soap envelope
+ from the callback object and do whatever you want to do with it */
+
+ axis2_soap_envelope_t *soap_envelope = NULL;
+ axis2_om_node_t *ret_node = NULL;
axis2_status_t status = AXIS2_SUCCESS;
-
- printf("inside on_complete_callback function\n");
-
- soap_envelope = AXIS2_CALLBACK_GET_ENVELOPE(callback, env);
-
- if (!soap_envelope)
- {
- AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
+
+ printf("inside on_complete_callback function\n");
+
+ soap_envelope = AXIS2_CALLBACK_GET_ENVELOPE(callback, env);
+
+ if (!soap_envelope)
+ {
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
" %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
- printf("echo stub invoke FAILED!\n");
- status = AXIS2_FAILURE;
- }
+ printf("echo stub invoke FAILED!\n");
+ status = AXIS2_FAILURE;
+ }
else
{
ret_node = AXIS2_SOAP_ENVELOPE_GET_BASE_NODE(soap_envelope, env);
@@ -191,7 +191,7 @@
}
}
isComplete = 1;
- return status;
+ return status;
}
axis2_status_t AXIS2_CALL
@@ -199,9 +199,9 @@
const axis2_env_t *env,
int exception)
{
- /** take necessary action on error */
- printf("\necho client invike FAILED. Error code:%d ::%s", exception,
- AXIS2_ERROR_GET_MESSAGE(env->error));
- isComplete = 1;
- return AXIS2_SUCCESS;
+ /** take necessary action on error */
+ printf("\necho client invike FAILED. Error code:%d ::%s", exception,
+ AXIS2_ERROR_GET_MESSAGE(env->error));
+ isComplete = 1;
+ return AXIS2_SUCCESS;
}
Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c Sat Jun 3 20:09:08 2006
@@ -71,7 +71,7 @@
{
printf("Error creating service client\n");
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
- " %d :: %s", env->error->error_number,
+ " %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
}
@@ -94,8 +94,8 @@
}
else
{
- AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
- " %d :: %s", env->error->error_number,
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
+ " %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
printf("echo client invoke FAILED!\n");
}
Modified: webservices/axis2/trunk/c/test/core/addr/test_addr.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/core/addr/test_addr.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/addr/test_addr.c (original)
+++ webservices/axis2/trunk/c/test/core/addr/test_addr.c Sat Jun 3 20:09:08 2006
@@ -6,150 +6,150 @@
int axis2_test_msg_info_headers()
{
- axis2_endpoint_ref_t *to = NULL;
- axis2_endpoint_ref_t *from = NULL;
- axis2_endpoint_ref_t *reply_to= NULL;
- axis2_endpoint_ref_t *fault_to= NULL;
- axis2_endpoint_ref_t *axis2_endpoint_ref = NULL;
- axis2_status_t status = AXIS2_FAILURE;
- axis2_msg_info_headers_t *axis2_msg_info_headers = NULL;
- axis2_allocator_t *allocator = axis2_allocator_init (NULL);
- const axis2_env_t *env = axis2_env_create (allocator);
- axis2_char_t *action = "test action";
- axis2_char_t *get_action = NULL;
- to = axis2_endpoint_ref_create(env, "to");
- from = axis2_endpoint_ref_create(env, "from");
- reply_to = axis2_endpoint_ref_create(env, "reply to");
- fault_to = axis2_endpoint_ref_create(env, "fault to");
-
- axis2_msg_info_headers = axis2_msg_info_headers_create(env, NULL, action);
- if (axis2_msg_info_headers)
- printf("SUCCESS axis2_msg_info_headers_create\n");
- else
- {
- printf("ERROR AXIS2_MSG_INFO_HEADERS_CREATE\n");
- return -1;
- }
-
- status = AXIS2_MSG_INFO_HEADERS_SET_TO(axis2_msg_info_headers, env, to);
-
- if(status == AXIS2_SUCCESS)
- printf("SUCCESS AXIS2_MSG_INFO_HEADERS_SET_TO\n");
- else
- {
- printf("ERROR AXIS2_MSG_INFO_HEADERS_SET_TO");
- return -1;
- }
+ axis2_endpoint_ref_t *to = NULL;
+ axis2_endpoint_ref_t *from = NULL;
+ axis2_endpoint_ref_t *reply_to= NULL;
+ axis2_endpoint_ref_t *fault_to= NULL;
+ axis2_endpoint_ref_t *axis2_endpoint_ref = NULL;
+ axis2_status_t status = AXIS2_FAILURE;
+ axis2_msg_info_headers_t *axis2_msg_info_headers = NULL;
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+ const axis2_env_t *env = axis2_env_create (allocator);
+ axis2_char_t *action = "test action";
+ axis2_char_t *get_action = NULL;
+ to = axis2_endpoint_ref_create(env, "to");
+ from = axis2_endpoint_ref_create(env, "from");
+ reply_to = axis2_endpoint_ref_create(env, "reply to");
+ fault_to = axis2_endpoint_ref_create(env, "fault to");
+
+ axis2_msg_info_headers = axis2_msg_info_headers_create(env, NULL, action);
+ if (axis2_msg_info_headers)
+ printf("SUCCESS axis2_msg_info_headers_create\n");
+ else
+ {
+ printf("ERROR AXIS2_MSG_INFO_HEADERS_CREATE\n");
+ return -1;
+ }
+
+ status = AXIS2_MSG_INFO_HEADERS_SET_TO(axis2_msg_info_headers, env, to);
+
+ if(status == AXIS2_SUCCESS)
+ printf("SUCCESS AXIS2_MSG_INFO_HEADERS_SET_TO\n");
+ else
+ {
+ printf("ERROR AXIS2_MSG_INFO_HEADERS_SET_TO");
+ return -1;
+ }
- axis2_endpoint_ref = AXIS2_MSG_INFO_HEADERS_GET_TO(axis2_msg_info_headers, env);
+ axis2_endpoint_ref = AXIS2_MSG_INFO_HEADERS_GET_TO(axis2_msg_info_headers, env);
- if (axis2_endpoint_ref)
- printf("SUCCESS AXIS2_MSG_INFO_HEADERS_GET_TO\n");
- else
- {
- printf("ERROR AXIS2_MSG_INFO_HEADERS_GET_TO\n");
- return -1;
+ if (axis2_endpoint_ref)
+ printf("SUCCESS AXIS2_MSG_INFO_HEADERS_GET_TO\n");
+ else
+ {
+ printf("ERROR AXIS2_MSG_INFO_HEADERS_GET_TO\n");
+ return -1;
}
- status = AXIS2_FAILURE;
- status = AXIS2_MSG_INFO_HEADERS_SET_FROM(axis2_msg_info_headers, env, from);
+ status = AXIS2_FAILURE;
+ status = AXIS2_MSG_INFO_HEADERS_SET_FROM(axis2_msg_info_headers, env, from);
- if(status)
- printf("SUCCESS AXIS2_MSG_INFO_HEADERS_SET_FROM\n");
- else
- {
- printf("ERROR AXIS2_MSG_INFO_HEADERS_SET_FROM\n");
- return -1;
- }
-
- axis2_endpoint_ref = NULL;
- axis2_endpoint_ref = AXIS2_MSG_INFO_HEADERS_GET_FROM(axis2_msg_info_headers, env);
-
- if(axis2_endpoint_ref)
- printf("SUCCESS AXIS2_MSG_INFO_HEADERS_GET_FROM\n");
- else
- {
- printf("ERROR AXIS2_MSG_INFO_HEADERS_GET_FROM\n");
- return -1;
- }
-
-
-
- axis2_endpoint_ref = NULL;
- axis2_endpoint_ref = AXIS2_MSG_INFO_HEADERS_GET_REPLY_TO(axis2_msg_info_headers, env);
-
- if(status)
- printf("SUCCESS AXIS2_MSG_INFO_HEADERS_GET_REPLY_TO\n");
- else
- {
- printf("ERROR AXIS2_MSG_INFO_HEADERS_GET_REPLY_TO\n");
- return -1;
- }
-
- status = AXIS2_FAILURE;
- status = AXIS2_MSG_INFO_HEADERS_SET_REPLY_TO(axis2_msg_info_headers, env, reply_to);
-
- if(status)
- printf("SUCCESS AXIS2_MSG_INFO_HEADERS_SET_REPLY_TO\n");
- else
- {
- printf("ERROR AXIS2_MSG_INFO_HEADERS_SET_REPLY_TO\n");
- return -1;
- }
-
- status = AXIS2_FAILURE;
- status = AXIS2_MSG_INFO_HEADERS_SET_FAULT_TO(axis2_msg_info_headers, env, fault_to);
- if(status)
- printf("SUCCESS AXIS2_MSG_INFO_HEADERS_SET_FAULT_TO\n");
- else
- {
- printf("ERROR AXIS2_MSG_INFO_HEADERS_SET_FAULT_TO\n");
- return -1;
- }
-
- axis2_endpoint_ref = NULL;
- axis2_endpoint_ref = AXIS2_MSG_INFO_HEADERS_GET_FAULT_TO(axis2_msg_info_headers, env);
- if(axis2_endpoint_ref)
- printf("SUCCESS AXIS2_MSG_INFO_HEADERS_GET_FAULT_TO\n");
- else
- {
- printf("ERROR AXIS2_MSG_INFO_HEADERS_GET_FAULT_TO\n");
- return -1;
- }
-
-
- get_action = AXIS2_MSG_INFO_HEADERS_GET_ACTION(axis2_msg_info_headers, env);
- if(get_action)
- printf("SUCCESS AXIS2_MSG_INFO_HEADERS_GET_ACTION\n");
- else
- {
- printf("ERROR AXIS2_MSG_INFO_HEADERS_GET_ACTION\n");
- return -1;
- }
-
- status = AXIS2_FAILURE;
- status = AXIS2_MSG_INFO_HEADERS_SET_ACTION(axis2_msg_info_headers, env, action);
- if(status)
- printf("SUCCESS AXIS2_MSG_INFO_HEADERS_SET_ACTION\n");
- else
- {
- printf("ERROR AXIS2_MSG_INFO_HEADERS_SET_ACTION\n");
- }
-
-
- status = AXIS2_FAILURE;
- status = AXIS2_MSG_INFO_HEADERS_FREE(axis2_msg_info_headers, env);
- if (status)
- printf("SUCCESS AXIS2_MSG_INFO_HEADERS_FREE\n");
- else
- {
- printf("ERROR AXIS2_MSG_INFO_HEADERS_FREE\n");
- }
- return 0;
+ if(status)
+ printf("SUCCESS AXIS2_MSG_INFO_HEADERS_SET_FROM\n");
+ else
+ {
+ printf("ERROR AXIS2_MSG_INFO_HEADERS_SET_FROM\n");
+ return -1;
+ }
+
+ axis2_endpoint_ref = NULL;
+ axis2_endpoint_ref = AXIS2_MSG_INFO_HEADERS_GET_FROM(axis2_msg_info_headers, env);
+
+ if(axis2_endpoint_ref)
+ printf("SUCCESS AXIS2_MSG_INFO_HEADERS_GET_FROM\n");
+ else
+ {
+ printf("ERROR AXIS2_MSG_INFO_HEADERS_GET_FROM\n");
+ return -1;
+ }
+
+
+
+ axis2_endpoint_ref = NULL;
+ axis2_endpoint_ref = AXIS2_MSG_INFO_HEADERS_GET_REPLY_TO(axis2_msg_info_headers, env);
+
+ if(status)
+ printf("SUCCESS AXIS2_MSG_INFO_HEADERS_GET_REPLY_TO\n");
+ else
+ {
+ printf("ERROR AXIS2_MSG_INFO_HEADERS_GET_REPLY_TO\n");
+ return -1;
+ }
+
+ status = AXIS2_FAILURE;
+ status = AXIS2_MSG_INFO_HEADERS_SET_REPLY_TO(axis2_msg_info_headers, env, reply_to);
+
+ if(status)
+ printf("SUCCESS AXIS2_MSG_INFO_HEADERS_SET_REPLY_TO\n");
+ else
+ {
+ printf("ERROR AXIS2_MSG_INFO_HEADERS_SET_REPLY_TO\n");
+ return -1;
+ }
+
+ status = AXIS2_FAILURE;
+ status = AXIS2_MSG_INFO_HEADERS_SET_FAULT_TO(axis2_msg_info_headers, env, fault_to);
+ if(status)
+ printf("SUCCESS AXIS2_MSG_INFO_HEADERS_SET_FAULT_TO\n");
+ else
+ {
+ printf("ERROR AXIS2_MSG_INFO_HEADERS_SET_FAULT_TO\n");
+ return -1;
+ }
+
+ axis2_endpoint_ref = NULL;
+ axis2_endpoint_ref = AXIS2_MSG_INFO_HEADERS_GET_FAULT_TO(axis2_msg_info_headers, env);
+ if(axis2_endpoint_ref)
+ printf("SUCCESS AXIS2_MSG_INFO_HEADERS_GET_FAULT_TO\n");
+ else
+ {
+ printf("ERROR AXIS2_MSG_INFO_HEADERS_GET_FAULT_TO\n");
+ return -1;
+ }
+
+
+ get_action = AXIS2_MSG_INFO_HEADERS_GET_ACTION(axis2_msg_info_headers, env);
+ if(get_action)
+ printf("SUCCESS AXIS2_MSG_INFO_HEADERS_GET_ACTION\n");
+ else
+ {
+ printf("ERROR AXIS2_MSG_INFO_HEADERS_GET_ACTION\n");
+ return -1;
+ }
+
+ status = AXIS2_FAILURE;
+ status = AXIS2_MSG_INFO_HEADERS_SET_ACTION(axis2_msg_info_headers, env, action);
+ if(status)
+ printf("SUCCESS AXIS2_MSG_INFO_HEADERS_SET_ACTION\n");
+ else
+ {
+ printf("ERROR AXIS2_MSG_INFO_HEADERS_SET_ACTION\n");
+ }
+
+
+ status = AXIS2_FAILURE;
+ status = AXIS2_MSG_INFO_HEADERS_FREE(axis2_msg_info_headers, env);
+ if (status)
+ printf("SUCCESS AXIS2_MSG_INFO_HEADERS_FREE\n");
+ else
+ {
+ printf("ERROR AXIS2_MSG_INFO_HEADERS_FREE\n");
+ }
+ return 0;
}
int main()
{
- axis2_test_msg_info_headers();
- return 0;
+ axis2_test_msg_info_headers();
+ return 0;
}
Modified: webservices/axis2/trunk/c/test/core/clientapi/test_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/core/clientapi/test_client.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/clientapi/test_client.c (original)
+++ webservices/axis2/trunk/c/test/core/clientapi/test_client.c Sat Jun 3 20:09:08 2006
@@ -30,7 +30,7 @@
axis2_char_t *endpoint = "/axis2/services/echo/echo";
int c;
extern char *optarg;
-
+
while ((c = getopt(argc, argv, ":h:p:f:e:")) != -1)
{
switch(c)
@@ -49,23 +49,23 @@
break;
}
}
-
- write_to_socket(hostname, port, filename, endpoint);
+
+ write_to_socket(hostname, port, filename, endpoint);
return 0;
}
int write_to_socket(char *address, char* port, char* filename, char* endpoint)
{
- axis2_char_t buffer_l[4999];
+ axis2_char_t buffer_l[4999];
int sockfd, portno, n, i;
struct sockaddr_in serv_addr;
struct hostent *server;
struct stat buf;
axis2_char_t *buffer;
- axis2_char_t tmpstr[10];
+ axis2_char_t tmpstr[10];
int bufsize = 0;
-
- portno = atoi(port);
+
+ portno = atoi(port);
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if (sockfd < 0)
error("ERROR opening socket");
@@ -102,31 +102,31 @@
buffer[i] = '\0';
printf("%s...\n", buffer);
}
- sprintf(buffer_l, "POST %s HTTP/1.1\r\nUser-Agent: Axis/2.0/C\r\nConnection: Keep-Alive\r\nHost: ", endpoint);
- strcat(buffer_l, address);
- strcat(buffer_l, ":");
- strcat(buffer_l, port);
- strcat(buffer_l, "\r\n");
- strcat(buffer_l, "Content-Length: ");
- sprintf(tmpstr, "%d", strlen(buffer));
- strcat(buffer_l, tmpstr);
- strcat(buffer_l, "\r\n");
- /*strcat(buffer_l, "SOAPAction: http://localhost:9090/axis2/services/echo/echo\r\n");*/
- strcat(buffer_l, "Content-Type: application/soap+xml;\r\n");
- strcat(buffer_l, "\r\n");
+ sprintf(buffer_l, "POST %s HTTP/1.1\r\nUser-Agent: Axis/2.0/C\r\nConnection: Keep-Alive\r\nHost: ", endpoint);
+ strcat(buffer_l, address);
+ strcat(buffer_l, ":");
+ strcat(buffer_l, port);
+ strcat(buffer_l, "\r\n");
+ strcat(buffer_l, "Content-Length: ");
+ sprintf(tmpstr, "%d", strlen(buffer));
+ strcat(buffer_l, tmpstr);
+ strcat(buffer_l, "\r\n");
+ /*strcat(buffer_l, "SOAPAction: http://localhost:9090/axis2/services/echo/echo\r\n");*/
+ strcat(buffer_l, "Content-Type: application/soap+xml;\r\n");
+ strcat(buffer_l, "\r\n");
-
+
printf("Writing buffer_1...\n%s", buffer_l);
- n = write(sockfd, buffer_l, strlen(buffer_l));
+ n = write(sockfd, buffer_l, strlen(buffer_l));
n = write(sockfd,buffer,strlen(buffer));
if (n < 0)
- error("ERROR writing to socket");
+ error("ERROR writing to socket");
printf("Done writing to server\n");
buffer[0] = '\0';
-
+
printf("Reading the reply from server :\n");
while((n = read(sockfd, buffer, bufsize - 1)) > 0)
{
@@ -140,7 +140,7 @@
error("ERROR reading from socket");
buffer[0] = '\0';
}
- free(buffer);
+ free(buffer);
return 0;
}
Modified: webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c (original)
+++ webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c Sat Jun 3 20:09:08 2006
@@ -15,41 +15,41 @@
void axis2_test_call_invoke_blocking()
{
- 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 = 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_ctx *conf_ctx = NULL;
+ struct axis2_msg_ctx *msg_ctx = NULL;
+ struct axis2_msg_ctx *msg_ctx_res = NULL;
+ 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_char_t *axis2c_home;
-
- axis2_allocator_t *allocator = axis2_allocator_init (NULL);
- const axis2_env_t *env = axis2_env_create (allocator);
+
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+ const axis2_env_t *env = axis2_env_create (allocator);
axis2c_home = AXIS2_GETENV("AXIS2C_HOME");
- conf = axis2_conf_create(env);
- conf_ctx = axis2_conf_ctx_create(env, conf);
+ conf = axis2_conf_create(env);
+ conf_ctx = axis2_conf_ctx_create(env, conf);
- op = axis2_op_create(env);
+ op = axis2_op_create(env);
- qname = axis2_qname_create(env, "name1", NULL, NULL);
- svc = axis2_svc_create_with_qname(env, qname);
+ qname = axis2_qname_create(env, "name1", NULL, NULL);
+ svc = axis2_svc_create_with_qname(env, qname);
- svc_grp = axis2_svc_grp_create(env);
- svc_grp_ctx = axis2_svc_grp_ctx_create(env, svc_grp, conf_ctx);
+ svc_grp = axis2_svc_grp_create(env);
+ svc_grp_ctx = axis2_svc_grp_ctx_create(env, svc_grp, conf_ctx);
- svc_ctx = axis2_svc_ctx_create(env, svc, svc_grp_ctx);
+ svc_ctx = axis2_svc_ctx_create(env, svc, svc_grp_ctx);
- call = axis2_call_create(env, svc_ctx, axis2c_home);
+ call = axis2_call_create(env, svc_ctx, axis2c_home);
- msg_ctx = axis2_msg_ctx_create(env, conf_ctx, NULL, NULL);
-
- msg_ctx_res = AXIS2_CALL_INVOKE_BLOCKING(call, env, op, msg_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)
printf("axis2_test_call_invoke_blocking SUCCESS\n");
@@ -68,6 +68,6 @@
int main()
{
- axis2_test_call_invoke_blocking();
- return 0;
+ axis2_test_call_invoke_blocking();
+ return 0;
}
Modified: webservices/axis2/trunk/c/test/core/context/test_context.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/core/context/test_context.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/context/test_context.c (original)
+++ webservices/axis2/trunk/c/test/core/context/test_context.c Sat Jun 3 20:09:08 2006
@@ -7,43 +7,43 @@
void axis2_test_conf_ctx_init()
{
- struct axis2_conf *conf = NULL;
+ struct axis2_conf *conf = NULL;
struct axis2_svc_grp_ctx *svc_grp_ctx1 = NULL;
struct axis2_svc_grp_ctx *svc_grp_ctx2 = NULL;
- struct axis2_svc_grp *svc_grp1 = NULL;
- struct axis2_svc_grp *svc_grp2 = NULL;
- struct axis2_conf_ctx *conf_ctx = NULL;
- struct axis2_svc_ctx *svc_ctx1 = NULL;
- struct axis2_svc_ctx *svc_ctx2 = NULL;
- struct axis2_svc *svc1 = NULL;
- struct axis2_svc *svc2 = NULL;
- struct axis2_qname *qname1 = NULL;
- struct axis2_qname *qname2 = NULL;
- struct axis2_op_ctx *op_ctx1 = NULL;
- struct axis2_op_ctx *op_ctx2 = NULL;
- struct axis2_op *op = NULL;
- struct axis2_hash_t *op_ctx_map = NULL;
- struct axis2_hash_t *svc_ctx_map = NULL;
- struct axis2_hash_t *svc_grp_ctx_map = NULL;
+ struct axis2_svc_grp *svc_grp1 = NULL;
+ struct axis2_svc_grp *svc_grp2 = NULL;
+ struct axis2_conf_ctx *conf_ctx = NULL;
+ struct axis2_svc_ctx *svc_ctx1 = NULL;
+ struct axis2_svc_ctx *svc_ctx2 = NULL;
+ struct axis2_svc *svc1 = NULL;
+ struct axis2_svc *svc2 = NULL;
+ struct axis2_qname *qname1 = NULL;
+ struct axis2_qname *qname2 = NULL;
+ struct axis2_op_ctx *op_ctx1 = NULL;
+ struct axis2_op_ctx *op_ctx2 = NULL;
+ struct axis2_op *op = NULL;
+ struct axis2_hash_t *op_ctx_map = NULL;
+ struct axis2_hash_t *svc_ctx_map = NULL;
+ struct axis2_hash_t *svc_grp_ctx_map = NULL;
- axis2_status_t status = AXIS2_FAILURE;
- axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+ axis2_status_t status = AXIS2_FAILURE;
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL);
const axis2_env_t *env = axis2_env_create (allocator);
- conf = axis2_conf_create(env);
-
- op = axis2_op_create(env);
+ conf = axis2_conf_create(env);
+
+ op = axis2_op_create(env);
- conf_ctx = axis2_conf_ctx_create(env, conf);
+ conf_ctx = axis2_conf_ctx_create(env, conf);
- svc_grp1 = axis2_svc_grp_create(env);
- svc_grp2 = axis2_svc_grp_create(env);
+ svc_grp1 = axis2_svc_grp_create(env);
+ svc_grp2 = axis2_svc_grp_create(env);
- svc_grp_ctx1 = axis2_svc_grp_ctx_create(env, svc_grp1, conf_ctx);
- svc_grp_ctx2 = axis2_svc_grp_ctx_create(env, svc_grp2, conf_ctx);
+ svc_grp_ctx1 = axis2_svc_grp_ctx_create(env, svc_grp1, conf_ctx);
+ svc_grp_ctx2 = axis2_svc_grp_ctx_create(env, svc_grp2, conf_ctx);
- qname1 = axis2_qname_create(env, "name1", NULL, NULL);
- qname2 = axis2_qname_create(env, "name2", NULL, NULL);
+ qname1 = axis2_qname_create(env, "name1", NULL, NULL);
+ qname2 = axis2_qname_create(env, "name2", NULL, NULL);
svc1 = axis2_svc_create_with_qname(env, qname1);
svc2 = axis2_svc_create_with_qname(env, qname2);
@@ -51,11 +51,11 @@
svc_ctx1 = axis2_svc_ctx_create(env, svc1, svc_grp_ctx1);
svc_ctx2 = axis2_svc_ctx_create(env, svc2, svc_grp_ctx2);
- op = axis2_op_create(env);
- op_ctx1 = axis2_op_ctx_create(env, op, svc_ctx1);
- op_ctx2 = axis2_op_ctx_create(env, op, svc_ctx2);
+ op = axis2_op_create(env);
+ op_ctx1 = axis2_op_ctx_create(env, op, svc_ctx1);
+ op_ctx2 = axis2_op_ctx_create(env, op, svc_ctx2);
- op_ctx_map = AXIS2_CONF_CTX_GET_OP_CTX_MAP(conf_ctx, env);
+ op_ctx_map = AXIS2_CONF_CTX_GET_OP_CTX_MAP(conf_ctx, env);
if (op_ctx_map)
{
@@ -63,28 +63,28 @@
axis2_hash_set(op_ctx_map, "op_ctx2", AXIS2_HASH_KEY_STRING, op_ctx2);
}
- svc_ctx_map = AXIS2_CONF_CTX_GET_SVC_CTX_MAP(conf_ctx, env);
+ svc_ctx_map = AXIS2_CONF_CTX_GET_SVC_CTX_MAP(conf_ctx, env);
- if (svc_ctx_map)
- {
- axis2_hash_set(svc_ctx_map, "svc_ctx1", AXIS2_HASH_KEY_STRING, svc_ctx1);
- axis2_hash_set(svc_ctx_map, "svc_ctx2", AXIS2_HASH_KEY_STRING, svc_ctx2);
- }
-
- svc_grp_ctx_map = AXIS2_CONF_CTX_GET_SVC_GRP_CTX_MAP(conf_ctx, env);
-
- if (svc_grp_ctx_map)
- {
- axis2_hash_set(svc_ctx_map, "svc_grp_ctx1", AXIS2_HASH_KEY_STRING, svc_grp_ctx1);
- axis2_hash_set(svc_ctx_map, "svc_grp_ctx2", AXIS2_HASH_KEY_STRING, svc_grp_ctx2);
- }
-
- status = AXIS2_CONF_CTX_INIT(conf_ctx, env, conf);
-
- if (status != AXIS2_SUCCESS)
- {
- printf("ERROR %d\n", status);
- }
+ if (svc_ctx_map)
+ {
+ axis2_hash_set(svc_ctx_map, "svc_ctx1", AXIS2_HASH_KEY_STRING, svc_ctx1);
+ axis2_hash_set(svc_ctx_map, "svc_ctx2", AXIS2_HASH_KEY_STRING, svc_ctx2);
+ }
+
+ svc_grp_ctx_map = AXIS2_CONF_CTX_GET_SVC_GRP_CTX_MAP(conf_ctx, env);
+
+ if (svc_grp_ctx_map)
+ {
+ axis2_hash_set(svc_ctx_map, "svc_grp_ctx1", AXIS2_HASH_KEY_STRING, svc_grp_ctx1);
+ axis2_hash_set(svc_ctx_map, "svc_grp_ctx2", AXIS2_HASH_KEY_STRING, svc_grp_ctx2);
+ }
+
+ status = AXIS2_CONF_CTX_INIT(conf_ctx, env, conf);
+
+ if (status != AXIS2_SUCCESS)
+ {
+ printf("ERROR %d\n", status);
+ }
else
printf("SUCCESS\n");
@@ -93,6 +93,6 @@
int main()
{
- axis2_test_conf_ctx_init();
- return 0;
+ axis2_test_conf_ctx_init();
+ return 0;
}
Modified: webservices/axis2/trunk/c/test/core/deployment/test_deployment.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/core/deployment/test_deployment.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/deployment/test_deployment.c (original)
+++ webservices/axis2/trunk/c/test/core/deployment/test_deployment.c Sat Jun 3 20:09:08 2006
@@ -87,7 +87,7 @@
{
axis2_qname_t *qname = NULL;
qname = AXIS2_OP_GET_QNAME((axis2_op_t *)op, env);
- oname = AXIS2_QNAME_GET_LOCALPART(qname, env);
+ oname = AXIS2_QNAME_GET_LOCALPART(qname, env);
printf("op name = %s\n", oname);
}
}
@@ -310,7 +310,7 @@
int main()
{
- axis2_allocator_t *allocator = NULL;
+ axis2_allocator_t *allocator = NULL;
axis2_error_t *error = NULL;
axis2_log_t *log = NULL;
@@ -323,5 +323,5 @@
axis2_test_transport_sender_load();*/
axis2_test_dep_engine_load();
axis2_test_default_module_version();
- return 0;
+ return 0;
}
Modified: webservices/axis2/trunk/c/test/core/description/test_description.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/core/description/test_description.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/description/test_description.c (original)
+++ webservices/axis2/trunk/c/test/core/description/test_description.c Sat Jun 3 20:09:08 2006
@@ -11,110 +11,110 @@
{
struct axis2_module_desc *moduleref= NULL;
- axis2_status_t status = AXIS2_FAILURE;
+ axis2_status_t status = AXIS2_FAILURE;
printf("******************************************\n");
printf("testing axis2_op_engage_module\n");
printf("******************************************\n");
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
- const axis2_env_t *env = axis2_env_create (allocator);
- axis2_op_t *op = axis2_op_create(env);
+ const axis2_env_t *env = axis2_env_create (allocator);
+ axis2_op_t *op = axis2_op_create(env);
moduleref = axis2_module_desc_create(env);
status = AXIS2_OP_ENGAGE_MODULE(op, env, moduleref);
moduleref = NULL;
- if(status != AXIS2_SUCCESS )
- {
- AXIS2_OP_FREE(op, env);
- printf("ERROR %d\n", status);
- }
+ if(status != AXIS2_SUCCESS )
+ {
+ AXIS2_OP_FREE(op, env);
+ printf("ERROR %d\n", status);
+ }
- AXIS2_OP_FREE(op, env);
- axis2_env_free(env);
+ AXIS2_OP_FREE(op, env);
+ axis2_env_free(env);
return 0;
}
int axis2_test_svc_add_module_ops()
{
- struct axis2_svc *svc = NULL;
- struct axis2_qname *qname = NULL;
+ struct axis2_svc *svc = NULL;
+ struct axis2_qname *qname = NULL;
struct axis2_module_desc *module_desc = NULL;
- struct axis2_conf *axis2_config = NULL;
+ struct axis2_conf *axis2_config = NULL;
- axis2_status_t status = AXIS2_FAILURE;
+ axis2_status_t status = AXIS2_FAILURE;
- printf("******************************************\n");
+ printf("******************************************\n");
printf("testing axis2_svc_add_module_ops\n");
printf("******************************************\n");
- axis2_allocator_t *allocator = axis2_allocator_init (NULL);
- const axis2_env_t *env = axis2_env_create (allocator);
- qname = axis2_qname_create(env, "name1", NULL, NULL);
- svc = axis2_svc_create_with_qname(env, qname);
- module_desc = axis2_module_desc_create(env);
- axis2_config = axis2_conf_create(env);
- status = AXIS2_SVC_ADD_MODULE_OPS(svc, env, module_desc, axis2_config);
- if(status != AXIS2_SUCCESS)
- {
- printf("axis2_test_description_add_module_ops ERROR %d\n", status);
- }
- else
- printf("axis2_test_add_module_ops SUCCESS\n");
-
- AXIS2_SVC_FREE(svc, env);
- AXIS2_QNAME_FREE(qname, env);
- AXIS2_MODULE_DESC_FREE(module_desc, env);
- AXIS2_CONF_FREE(axis2_config, env);
-
- return 0;
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+ const axis2_env_t *env = axis2_env_create (allocator);
+ qname = axis2_qname_create(env, "name1", NULL, NULL);
+ svc = axis2_svc_create_with_qname(env, qname);
+ module_desc = axis2_module_desc_create(env);
+ axis2_config = axis2_conf_create(env);
+ status = AXIS2_SVC_ADD_MODULE_OPS(svc, env, module_desc, axis2_config);
+ if(status != AXIS2_SUCCESS)
+ {
+ printf("axis2_test_description_add_module_ops ERROR %d\n", status);
+ }
+ else
+ printf("axis2_test_add_module_ops SUCCESS\n");
+
+ AXIS2_SVC_FREE(svc, env);
+ AXIS2_QNAME_FREE(qname, env);
+ AXIS2_MODULE_DESC_FREE(module_desc, env);
+ AXIS2_CONF_FREE(axis2_config, env);
+
+ return 0;
}
int axis2_test_svc_engage_module()
{
- axis2_svc_t *svc = NULL;
- axis2_qname_t *qname = NULL;
- axis2_module_desc_t *moduleref = NULL;
- axis2_conf_t *axis2_config = NULL;
- axis2_status_t status = AXIS2_FAILURE;
+ axis2_svc_t *svc = NULL;
+ axis2_qname_t *qname = NULL;
+ axis2_module_desc_t *moduleref = NULL;
+ axis2_conf_t *axis2_config = NULL;
+ axis2_status_t status = AXIS2_FAILURE;
printf("******************************************\n");
printf("testing axis2_svc_engage_module\n");
printf("******************************************\n");
- axis2_allocator_t *allocator = axis2_allocator_init (NULL);
- const axis2_env_t *env = axis2_env_create (allocator);
- qname = axis2_qname_create(env, "name1", NULL, NULL);
- svc = axis2_svc_create_with_qname(env, qname);
- moduleref = axis2_module_desc_create(env);
- axis2_config = axis2_conf_create(env);
-
- status = AXIS2_SVC_ENGAGE_MODULE(svc, env, moduleref, axis2_config);
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+ const axis2_env_t *env = axis2_env_create (allocator);
+ qname = axis2_qname_create(env, "name1", NULL, NULL);
+ svc = axis2_svc_create_with_qname(env, qname);
+ moduleref = axis2_module_desc_create(env);
+ axis2_config = axis2_conf_create(env);
+
+ status = AXIS2_SVC_ENGAGE_MODULE(svc, env, moduleref, axis2_config);
moduleref = NULL;
- if(status != AXIS2_SUCCESS)
- {
- printf("axis2_test_description_svc_engage_module ERROR %d\n", status);
- }
- else
- printf("axis2_test_svc_engage_module SUCCESS\n");
-
- AXIS2_SVC_FREE(svc, env);
- AXIS2_QNAME_FREE(qname, env);
- AXIS2_CONF_FREE(axis2_config, env);
+ if(status != AXIS2_SUCCESS)
+ {
+ printf("axis2_test_description_svc_engage_module ERROR %d\n", status);
+ }
+ else
+ printf("axis2_test_svc_engage_module SUCCESS\n");
+
+ AXIS2_SVC_FREE(svc, env);
+ AXIS2_QNAME_FREE(qname, env);
+ AXIS2_CONF_FREE(axis2_config, env);
- return 0;
+ return 0;
}
int axis2_test_svc_get_op()
{
- struct axis2_svc *svc = NULL;
- struct axis2_qname *qname = NULL;
- struct axis2_hash_t *ops = NULL;
- struct axis2_op *op = NULL;
- axis2_status_t status = AXIS2_SUCCESS;
+ struct axis2_svc *svc = NULL;
+ struct axis2_qname *qname = NULL;
+ struct axis2_hash_t *ops = NULL;
+ struct axis2_op *op = NULL;
+ axis2_status_t status = AXIS2_SUCCESS;
printf("******************************************\n");
@@ -122,27 +122,27 @@
printf("******************************************\n");
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
- const axis2_env_t *env = axis2_env_create (allocator);
- qname = axis2_qname_create(env, "op1", NULL, NULL);
- op = axis2_op_create_with_qname(env, qname);
- qname = axis2_qname_create(env, "svc1", NULL, NULL);
- svc = axis2_svc_create_with_qname(env, qname);
-
- status = AXIS2_SVC_ADD_OP(svc, env, op);
-
- qname = axis2_qname_create(env, "op2", NULL, NULL);
- op = axis2_op_create_with_qname(env, qname);
- status = AXIS2_SVC_ADD_OP(svc, env, op);
-
+ const axis2_env_t *env = axis2_env_create (allocator);
+ qname = axis2_qname_create(env, "op1", NULL, NULL);
+ op = axis2_op_create_with_qname(env, qname);
+ qname = axis2_qname_create(env, "svc1", NULL, NULL);
+ svc = axis2_svc_create_with_qname(env, qname);
+
+ status = AXIS2_SVC_ADD_OP(svc, env, op);
+
+ qname = axis2_qname_create(env, "op2", NULL, NULL);
+ op = axis2_op_create_with_qname(env, qname);
+ status = AXIS2_SVC_ADD_OP(svc, env, op);
+
ops = AXIS2_SVC_GET_OPS(svc, env);
- if (ops)
- printf("SUCCESS AXIS2_SVC_GET_OPS\n");
- else
- {
- printf("ERROR AXIS2_SVC_GET_OPS\n");
- return -1;
- }
+ if (ops)
+ printf("SUCCESS AXIS2_SVC_GET_OPS\n");
+ else
+ {
+ printf("ERROR AXIS2_SVC_GET_OPS\n");
+ return -1;
+ }
if(ops)
{
@@ -164,23 +164,23 @@
{
axis2_qname_t *qname = NULL;
qname = AXIS2_OP_GET_QNAME((axis2_op_t *)op2, env);
- oname = AXIS2_QNAME_GET_LOCALPART(qname, env);
+ oname = AXIS2_QNAME_GET_LOCALPART(qname, env);
printf("op name = %s\n", oname);
}
}
}
else
printf("ops count = zero\n");
-
+
- return 0;
+ return 0;
}
int main()
{
- axis2_test_op_engage_module();
- axis2_test_svc_add_module_ops();
- axis2_test_svc_engage_module();
- axis2_test_svc_get_op();
- return 0;
+ axis2_test_op_engage_module();
+ axis2_test_svc_add_module_ops();
+ axis2_test_svc_engage_module();
+ axis2_test_svc_get_op();
+ return 0;
}
Modified: webservices/axis2/trunk/c/test/core/engine/test_engine.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/core/engine/test_engine.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/engine/test_engine.c (original)
+++ webservices/axis2/trunk/c/test/core/engine/test_engine.c Sat Jun 3 20:09:08 2006
@@ -5,48 +5,48 @@
#include <axis2_msg_ctx.h>
#include <axis2_conf_builder.h>
-int axis2_test_engine_send()
+int axis2_test_engine_send()
{
- axis2_status_t status = AXIS2_FAILURE;
- axis2_allocator_t *allocator = axis2_allocator_init (NULL);
- const axis2_env_t *env = axis2_env_create (allocator);
+ axis2_status_t status = AXIS2_FAILURE;
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+ const axis2_env_t *env = axis2_env_create (allocator);
struct axis2_conf *conf = NULL;
- conf = axis2_conf_create(env);
+ conf = axis2_conf_create(env);
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;
+ 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);
+
+ 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);
+ 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);
+ msg_ctx = axis2_msg_ctx_create(env, conf_ctx, NULL, NULL);
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_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);
+ axis2_engine_t *engine = axis2_engine_create(env, conf_ctx);
status = AXIS2_ENGINE_SEND(engine, env, msg_ctx);
- if(status != AXIS2_SUCCESS )
- {
- printf("axis2_test_engine_send ERROR %d\n", status);
- }
+ if(status != AXIS2_SUCCESS )
+ {
+ printf("axis2_test_engine_send ERROR %d\n", status);
+ }
else
printf("axis2_test_engine_send SUCCESS\n");
@@ -62,27 +62,27 @@
return 0;
}
-int axis2_test_engine_receive()
+int axis2_test_engine_receive()
{
- axis2_status_t status = AXIS2_FAILURE;
- axis2_allocator_t *allocator = axis2_allocator_init (NULL);
- const axis2_env_t *env = axis2_env_create (allocator);
+ axis2_status_t status = AXIS2_FAILURE;
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+ const axis2_env_t *env = axis2_env_create (allocator);
axis2_conf_t *conf = NULL;
- conf = axis2_conf_create(env);
+ conf = axis2_conf_create(env);
struct axis2_conf_ctx *conf_ctx;
- struct axis2_msg_ctx *msg_ctx;
+ struct axis2_msg_ctx *msg_ctx;
conf_ctx = axis2_conf_ctx_create(env, conf);
- msg_ctx = axis2_msg_ctx_create(env, conf_ctx, NULL, NULL);
+ msg_ctx = axis2_msg_ctx_create(env, conf_ctx, NULL, NULL);
- axis2_engine_t *engine = axis2_engine_create(env, conf_ctx);
+ axis2_engine_t *engine = axis2_engine_create(env, conf_ctx);
status = AXIS2_ENGINE_RECEIVE(engine, env, msg_ctx);
- if(status != AXIS2_SUCCESS )
- {
- printf("axis2_test_engine_receive ERROR %d\n", status);
- }
+ if(status != AXIS2_SUCCESS )
+ {
+ printf("axis2_test_engine_receive ERROR %d\n", status);
+ }
else
printf("axis2_test_engine_receive SUCCESS\n");
AXIS2_CONF_CTX_FREE(conf_ctx, env);
@@ -94,7 +94,7 @@
int main()
{
- axis2_test_engine_send();
- axis2_test_engine_receive();
- return 0;
+ axis2_test_engine_send();
+ axis2_test_engine_receive();
+ return 0;
}
Modified: webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c (original)
+++ webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c Sat Jun 3 20:09:08 2006
@@ -29,10 +29,10 @@
axis2_env_t *test_init()
{
- axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL);
axis2_error_t *error = axis2_error_create (allocator);
axis2_env_t *env = axis2_env_create_with_error(allocator, error);
- return env;
+ return env;
}
void test_http_request_line(const axis2_env_t *env)
@@ -233,7 +233,7 @@
int main(void)
{
- const axis2_env_t *env = test_init();
+ const axis2_env_t *env = test_init();
test_http_request_line(env);
test_http_status_line(env);
test_http_header(env);
@@ -244,5 +244,5 @@
axis2_allocator_t *allocator = env->allocator;
axis2_env_free(env);
axis2_allocator_free(allocator);
- return 0;
+ return 0;
}
Modified: webservices/axis2/trunk/c/test/itest/whitemesa/round1/round1_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/itest/whitemesa/round1/round1_client.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/itest/whitemesa/round1/round1_client.c (original)
+++ webservices/axis2/trunk/c/test/itest/whitemesa/round1/round1_client.c Sat Jun 3 20:09:08 2006
@@ -362,7 +362,7 @@
"\nSending OM node in XML : %s \n", buffer);
writer = axis2_xml_writer_create_for_memory (env, NULL, AXIS2_TRUE, 0,
- AXIS2_XML_PARSER_TYPE_BUFFER);
+ AXIS2_XML_PARSER_TYPE_BUFFER);
om_output = axis2_om_output_create (env, writer);
AXIS2_OM_NODE_SERIALIZE (envelope_node, env, om_output);
buffer = (axis2_char_t*)AXIS2_XML_WRITER_GET_XML (writer, env);
@@ -378,7 +378,7 @@
axis2_om_output_t *om_output = NULL;
axis2_char_t *buffer = NULL;
writer = axis2_xml_writer_create_for_memory (env, NULL, AXIS2_TRUE, 0,
- AXIS2_XML_PARSER_TYPE_BUFFER);
+ AXIS2_XML_PARSER_TYPE_BUFFER);
om_output = axis2_om_output_create (env, writer);
AXIS2_OM_NODE_SERIALIZE (ret_node, env, om_output);
Modified: webservices/axis2/trunk/c/test/itest/whitemesa/round2/round2_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/itest/whitemesa/round2/round2_client.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/itest/whitemesa/round2/round2_client.c (original)
+++ webservices/axis2/trunk/c/test/itest/whitemesa/round2/round2_client.c Sat Jun 3 20:09:08 2006
@@ -191,8 +191,8 @@
return AXIS2_FAILURE;
}
/*see if we have got a fault*/
-
- sprintf (echo_response_buff, "echo%sResponse", echo_operation);
+
+ sprintf (echo_response_buff, "echo%sResponse", echo_operation);
result_ele = (axis2_om_element_t*)AXIS2_OM_NODE_GET_DATA_ELEMENT(ret_node, env);
if (AXIS2_STRCMP(AXIS2_OM_ELEMENT_GET_LOCALNAME(result_ele, env), echo_response_buff) != 0 )
{
@@ -209,15 +209,15 @@
result_ele = (axis2_om_element_t*)AXIS2_OM_NODE_GET_DATA_ELEMENT(ret_node1, env);
/*printf(AXIS2_OM_ELEMENT_GET_LOCALNAME(result_ele, env)); */
result = AXIS2_OM_ELEMENT_GET_TEXT(result_ele, env, ret_node1);
- if (!strcmp( word_to_echo, result ) )
- {
- printf("Success\n");
- }
- else
- {
- printf("Fail\n" );
- }
-
+ if (!strcmp( word_to_echo, result ) )
+ {
+ printf("Success\n");
+ }
+ else
+ {
+ printf("Fail\n" );
+ }
+
}
else
{
@@ -227,8 +227,8 @@
}
else
{
- AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke failed: Error code:"
- " %d :: %s", env->error->error_number,
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke failed: Error code:"
+ " %d :: %s", env->error->error_number,
AXIS2_ERROR_GET_MESSAGE(env->error));
printf("test stub invoke failed!\n");
}
@@ -249,7 +249,7 @@
axis2_om_node_t* text_om_node = NULL;
axis2_om_element_t * text_om_ele = NULL;
axis2_om_namespace_t *ns0 = NULL, *ns1 = NULL, *ns2 = NULL, *ns3 = NULL,
- *ns4 = NULL, *ns5 = NULL, *ns6 = NULL;
+ *ns4 = NULL, *ns5 = NULL, *ns6 = NULL;
axis2_om_attribute_t* attri1 = NULL;
@@ -294,7 +294,7 @@
AXIS2_OM_ELEMENT_SET_TEXT(text_om_ele, env, word_to_echo, text_om_node);
xml_writer = axis2_xml_writer_create_for_memory(env, NULL, AXIS2_FALSE, AXIS2_FALSE,
- AXIS2_XML_PARSER_TYPE_BUFFER);
+ AXIS2_XML_PARSER_TYPE_BUFFER);
om_output = axis2_om_output_create( env, xml_writer);
AXIS2_OM_NODE_SERIALIZE(echo_om_node, env, om_output);
@@ -311,7 +311,7 @@
axis2_om_output_t *om_output = NULL;
axis2_char_t *buffer = NULL;
writer = axis2_xml_writer_create_for_memory(env, NULL, AXIS2_TRUE, 0,
- AXIS2_XML_PARSER_TYPE_BUFFER);
+ AXIS2_XML_PARSER_TYPE_BUFFER);
om_output = axis2_om_output_create (env, writer);
AXIS2_OM_NODE_SERIALIZE (ret_node, env, om_output);
Modified: webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.c Sat Jun 3 20:09:08 2006
@@ -6,19 +6,19 @@
CuSuite* axis2_deploymentGetSuite()
{
CuSuite* suite = CuSuiteNew();
-
- /**
- * Test cases for axis2_phases_info
- */
+
+ /**
+ * Test cases for axis2_phases_info
+ */
/*SUITE_ADD_TEST(suite, Testaxis2_phases_info_get_op_in_phases );*/
- /**
- * Test cases for axis2_dep_engine
- */
+ /**
+ * Test cases for axis2_dep_engine
+ */
SUITE_ADD_TEST(suite, Testaxis2_dep_engine_free );
- SUITE_ADD_TEST(suite,Testaxis2_dep_engine_create);
- SUITE_ADD_TEST(suite,Testaxis2_dep_engine_create_with_repos_name);
- SUITE_ADD_TEST(suite,Testaxis2_dep_engine_load);
+ SUITE_ADD_TEST(suite,Testaxis2_dep_engine_create);
+ SUITE_ADD_TEST(suite,Testaxis2_dep_engine_create_with_repos_name);
+ SUITE_ADD_TEST(suite,Testaxis2_dep_engine_load);
return suite;
}
Modified: webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.c Sat Jun 3 20:09:08 2006
@@ -10,7 +10,7 @@
axis2_status_t actual = AXIS2_FAILURE;
axis2_status_t expected = AXIS2_SUCCESS;
axis2_char_t *axis2c_home = NULL;
-
+
printf("**************************************\n");
printf("testing axis2_dep_engine_free method \n");
printf("**************************************\n");
@@ -18,7 +18,7 @@
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
axis2_env_t *env = axis2_env_create (allocator);
axis2c_home = AXIS2_GETENV("AXIS2C_HOME");
-
+
dep_engine = axis2_dep_engine_create_with_repos_name(env, axis2c_home
);
if(!dep_engine)
@@ -28,7 +28,7 @@
}
actual = AXIS2_DEP_ENGINE_FREE(dep_engine, env);
CuAssertIntEquals(tc, expected, actual);
- axis2_env_free(env);
+ axis2_env_free(env);
}
@@ -47,7 +47,7 @@
dep_engine = axis2_dep_engine_create(env);
- CuAssertPtrNotNull(tc,dep_engine);
+ CuAssertPtrNotNull(tc,dep_engine);
if (dep_engine)
AXIS2_DEP_ENGINE_FREE(dep_engine, env);
@@ -69,10 +69,10 @@
env = axis2_env_create(allocator);
axis2c_home = AXIS2_GETENV("AXIS2C_HOME");
-
+
dep_engine = axis2_dep_engine_create_with_repos_name(env,axis2c_home);
- CuAssertPtrNotNull(tc, dep_engine);
+ CuAssertPtrNotNull(tc, dep_engine);
if (dep_engine)
AXIS2_DEP_ENGINE_FREE(dep_engine, env);
@@ -103,7 +103,7 @@
if (dep_engine)
conf_actual = AXIS2_DEP_ENGINE_LOAD(dep_engine, env);
- CuAssertPtrNotNull(tc, conf_actual);
+ CuAssertPtrNotNull(tc, conf_actual);
if (conf_actual)
AXIS2_DEP_ENGINE_FREE(dep_engine, env);
Modified: webservices/axis2/trunk/c/test/unit/wsdl/wsdl_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/unit/wsdl/wsdl_test.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/wsdl/wsdl_test.c (original)
+++ webservices/axis2/trunk/c/test/unit/wsdl/wsdl_test.c Sat Jun 3 20:09:08 2006
@@ -2,8 +2,8 @@
#include "wsdl_test.h"
CuSuite* axis2_wsdlGetSuite()
{
- CuSuite* suite = CuSuiteNew();
+ CuSuite* suite = CuSuiteNew();
SUITE_ADD_TEST(suite,Testaxis2_wsdl_component_set_component_properties);
- return suite;
+ return suite;
}
Modified: webservices/axis2/trunk/c/test/wsdl/builder/print/test_print.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/wsdl/builder/print/test_print.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/wsdl/builder/print/test_print.c (original)
+++ webservices/axis2/trunk/c/test/wsdl/builder/print/test_print.c Sat Jun 3 20:09:08 2006
@@ -49,25 +49,25 @@
void *wp = axis2_wsdl4c_parser_create(argv[1], "");
while (axis2_wsdl4c_parser_get_event_type(wp) != AXIS2_WSDL4C_PARSER_END)
{
- switch (axis2_wsdl4c_parser_get_next_element(wp))
- {
+ switch (axis2_wsdl4c_parser_get_next_element(wp))
+ {
axis2_array_list_t *msg_list = NULL;
void * port_type = NULL;
int i = 0;
int size = 0;
void *message = NULL;
- case AXIS2_WSDL4C_PARSER_DOCUMENTATION:
+ case AXIS2_WSDL4C_PARSER_DOCUMENTATION:
printf("%s\n", axis2_wsdl4c_parser_get_documentation(wp));
- break;
- case AXIS2_WSDL4C_PARSER_TYPES:
+ break;
+ case AXIS2_WSDL4C_PARSER_TYPES:
printf("%d schema(s) found \n", axis2_wsdl4c_parser_get_num_schemas(wp));
- break;
- case AXIS2_WSDL4C_PARSER_MESSAGE:
+ break;
+ case AXIS2_WSDL4C_PARSER_MESSAGE:
message = axis2_wsdl4c_parser_get_message(wp);
- printf("Message :%s\n", axis2_wsdl4c_msg_get_name(message));
- break;
- case AXIS2_WSDL4C_PARSER_PORT_TYPE:
+ printf("Message :%s\n", axis2_wsdl4c_msg_get_name(message));
+ break;
+ case AXIS2_WSDL4C_PARSER_PORT_TYPE:
port_type = axis2_wsdl4c_parser_get_port_type(wp);
printf("Port Type %s ", axis2_wsdl4c_port_type_get_name(port_type));
printf("has :%d operations \n", axis2_wsdl4c_port_type_get_num_ops(port_type));
@@ -82,26 +82,26 @@
axis2_array_list_t *fault_list = NULL;
void *op = AXIS2_ARRAY_LIST_GET(msg_list, env, i);
- if(!op)
- {
- return -1;
- }
+ if(!op)
+ {
+ return -1;
+ }
void *in_msg = axis2_wsdl4c_operation_get_message(op, AXIS2_WSDL4C_INPUT);
void *out_msg = axis2_wsdl4c_operation_get_message(op, AXIS2_WSDL4C_OUTPUT);
fault_list = axis2_wsdl4c_operation_get_faults(op);
op_name = axis2_wsdl4c_operation_get_name(op);
printf("Operation Name:%s\n", op_name);
- if(in_msg)
- {
- in_msg_name = axis2_wsdl4c_msg_get_name(in_msg);
- printf("Input:%s\n", in_msg_name);
- }
- if(out_msg)
- {
- out_msg_name = axis2_wsdl4c_msg_get_name(out_msg);
- printf("Output:%s\n", out_msg_name);
- }
+ if(in_msg)
+ {
+ in_msg_name = axis2_wsdl4c_msg_get_name(in_msg);
+ printf("Input:%s\n", in_msg_name);
+ }
+ if(out_msg)
+ {
+ out_msg_name = axis2_wsdl4c_msg_get_name(out_msg);
+ printf("Output:%s\n", out_msg_name);
+ }
if(fault_list)
{
int j = 0, sizej = 0;
Modified: webservices/axis2/trunk/c/util/include/axis2_allocator.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_allocator.h?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_allocator.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_allocator.h Sat Jun 3 20:09:08 2006
@@ -82,7 +82,7 @@
* @return initialized allocator. NULL on error.
*/
AXIS2_EXTERN axis2_allocator_t * AXIS2_CALL
- axis2_allocator_init (axis2_allocator_t *allocator);
+ axis2_allocator_init (axis2_allocator_t *allocator);
/**
* This function should be used to deallocate memory if the default allocator provided by
@@ -90,16 +90,16 @@
* @param allocator
*/
AXIS2_EXTERN axis2_status_t AXIS2_CALL
- axis2_allocator_free(axis2_allocator_t *allocator);
+ axis2_allocator_free(axis2_allocator_t *allocator);
#define AXIS2_MALLOC(allocator, size) \
- ((allocator)->malloc(allocator, size))
-
+ ((allocator)->malloc(allocator, size))
+
#define AXIS2_REALLOC(allocator, ptr, size) \
- ((allocator)->realloc(allocator, ptr, size))
-
+ ((allocator)->realloc(allocator, ptr, size))
+
#define AXIS2_FREE(allocator, ptr) \
- ((allocator)->free(allocator, ptr))
+ ((allocator)->free(allocator, ptr))
/** @} */
Modified: webservices/axis2/trunk/c/util/include/axis2_dll_desc.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_dll_desc.h?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_dll_desc.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_dll_desc.h Sat Jun 3 20:09:08 2006
@@ -169,7 +169,7 @@
};
-
+
/**
* \brief DLL Description struct
*/
Modified: webservices/axis2/trunk/c/util/include/axis2_env.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_env.h?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_env.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_env.h Sat Jun 3 20:09:08 2006
@@ -63,10 +63,10 @@
axis2_error_t *error;
/** Logging routines */
axis2_log_t *log;
- /** This flag indicate whether logging is enabled or not */
- axis2_bool_t log_enabled;
- /** Thread pooling routines */
- axis2_thread_pool_t *thread_pool;
+ /** This flag indicate whether logging is enabled or not */
+ axis2_bool_t log_enabled;
+ /** Thread pooling routines */
+ axis2_thread_pool_t *thread_pool;
} axis2_env_t;
/**
@@ -79,15 +79,15 @@
AXIS2_EXTERN axis2_env_t * AXIS2_CALL axis2_env_create_all (axis2_char_t *log_file,
axis2_log_levels_t log_level);
- /**
+ /**
* Creates an environment struct. Users of axis2 should not use this function
- * to create an environment. He should use the other two create functions.
+ * to create an environment. He should use the other two create functions.
* @param allocator pointer to an instance of allocator struct. Must be non-NULL
* @return pointer to the newly created environment struct
*/
AXIS2_EXTERN axis2_env_t * AXIS2_CALL axis2_env_create (axis2_allocator_t
*allocator);
-
+
/**
* Creates an environment struct
* @param allocator pointer to an instance of allocator struct. Must be non-NULL
@@ -96,10 +96,10 @@
* @return pointer to the newly created environment struct
*/
AXIS2_EXTERN axis2_env_t * AXIS2_CALL axis2_env_create_with_error
- (axis2_allocator_t *allocator
+ (axis2_allocator_t *allocator
, axis2_error_t *error);
-
- /**
+
+ /**
* Creates an environment struct
* @param allocator pointer to an instance of allocator struct. Must be non-NULL
* @param error pointer to an instance of error struct. Must be non-NULL.
@@ -108,24 +108,24 @@
* @return pointer to the newly created environment struct
*/
AXIS2_EXTERN axis2_env_t * AXIS2_CALL axis2_env_create_with_error_log
- (axis2_allocator_t *allocator
+ (axis2_allocator_t *allocator
, axis2_error_t *error
, axis2_log_t *log);
-
- /**
+
+ /**
* Creates an environment struct
* @param allocator pointer to an instance of allocator struct. Must be non-NULL
* @param error pointer to an instance of error struct. Must be non-NULL.
* @param log pointer to an instance of log struct. May be NULL. If NULL
* it would be taken as a flag for no logging.
- * @param pool pointer to an instance of thread_pool. May be NULL. If NULL
+ * @param pool pointer to an instance of thread_pool. May be NULL. If NULL
* @return pointer to the newly created environment struct
*/
AXIS2_EXTERN axis2_env_t * AXIS2_CALL axis2_env_create_with_error_log_thread_pool
- (axis2_allocator_t *allocator
+ (axis2_allocator_t *allocator
, axis2_error_t *error
, axis2_log_t *log
- , axis2_thread_pool_t *pool);
+ , axis2_thread_pool_t *pool);
/**
* Creates an environment struct
Modified: webservices/axis2/trunk/c/util/include/axis2_error.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_error.h?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_error.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_error.h Sat Jun 3 20:09:08 2006
@@ -269,8 +269,8 @@
AXIS2_ERROR_NULL_STREAM_IN_CHUNKED_STREAM,
/* We got a NULL strem in the response body */
AXIS2_ERROR_NULL_STREAM_IN_RESPONSE_BODY,
- /** URL NULL in http client */
- AXIS2_ERROR_NULL_URL,
+ /** URL NULL in http client */
+ AXIS2_ERROR_NULL_URL,
/* We need transport_info in msg_ctx*/
AXIS2_ERROR_OUT_TRNSPORT_INFO_NULL,
/*Content-Type header missing in HTTP response" */
@@ -296,14 +296,14 @@
/*
* Group - utils
*/
- /** Could not open the axis2 file */
- AXIS2_ERROR_COULD_NOT_OPEN_FILE,
+ /** Could not open the axis2 file */
+ AXIS2_ERROR_COULD_NOT_OPEN_FILE,
/* Failed in creating DLL */
AXIS2_ERROR_DLL_CREATE_FAILED,
/* DLL loading failed */
AXIS2_ERROR_DLL_LOADING_FAILED,
- /** Environment passed is null */
- AXIS2_ERROR_ENVIRONMENT_IS_NULL,
+ /** Environment passed is null */
+ AXIS2_ERROR_ENVIRONMENT_IS_NULL,
/* Axis2 File does not have a file name */
AXIS2_ERROR_FILE_NAME_NOT_SET,
/* DLL Description Info Object has invalid state */
@@ -312,12 +312,12 @@
AXIS2_ERROR_HANDLER_CREATION_FAILED,
/** Array list index out of bounds */
AXIS2_ERROR_INDEX_OUT_OF_BOUNDS,
- /** Invalid IP or hostname */
- AXIS2_ERROR_INVALID_ADDRESS,
- /** Trying to do operation on invalid file descriptor */
- AXIS2_ERROR_INVALID_FD,
- /** Trying to do operation on closed/not opened socket */
- AXIS2_ERROR_INVALID_SOCKET,
+ /** Invalid IP or hostname */
+ AXIS2_ERROR_INVALID_ADDRESS,
+ /** Trying to do operation on invalid file descriptor */
+ AXIS2_ERROR_INVALID_FD,
+ /** Trying to do operation on closed/not opened socket */
+ AXIS2_ERROR_INVALID_SOCKET,
/** Parameter not set */
AXIS2_ERROR_INVALID_STATE_PARAM,
/* Module create failed */
@@ -326,10 +326,10 @@
AXIS2_ERROR_MSG_RECV_CREATION_FAILED,
/** No such element */
AXIS2_ERROR_NO_SUCH_ELEMENT,
- /** Socket bind failed. Another process may be already using this port*/
- AXIS2_ERROR_SOCKET_BIND_FAILED,
- /** Error creating a socket. Most probably error returned by OS */
- AXIS2_ERROR_SOCKET_ERROR,
+ /** Socket bind failed. Another process may be already using this port*/
+ AXIS2_ERROR_SOCKET_BIND_FAILED,
+ /** Error creating a socket. Most probably error returned by OS */
+ AXIS2_ERROR_SOCKET_ERROR,
/* Listen failed for the server socket */
AXIS2_ERROR_SOCKET_LISTEN_FAILED,
/* Failed in creating Service Skeleton */
@@ -345,8 +345,8 @@
*/
/* Interface or Port Type not found for the binding */
AXIS2_ERROR_INTERFACE_OR_PORT_TYPE_NOT_FOUND_FOR_THE_BINDING,
- /* Interfaces or Ports not found for the partially built WOM */
- AXIS2_ERROR_INTERFACES_OR_PORTS_NOT_FOUND_FOR_PARTIALLY_BUILT_WOM,
+ /* Interfaces or Ports not found for the partially built WOM */
+ AXIS2_ERROR_INTERFACES_OR_PORTS_NOT_FOUND_FOR_PARTIALLY_BUILT_WOM,
/** Wsdl op accessed has invalid state */
AXIS2_ERROR_INVALID_STATE_WSDL_OP,
/** Wsdl Service accessed has invalid state */
@@ -435,9 +435,9 @@
AXIS2_ERROR_WRITING_START_ELEMENT_WITH_NAMESPACE_PREFIX,
/** error in writing cdata section */
AXIS2_ERROR_WRITING_CDATA,
- /** AXIS2_XML_PARSER_TYPE_BUFFER or AXIS2_XML_PARSER_TYPE_DOC is expected */
- AXIS2_ERROR_XML_PARSER_INVALID_MEM_TYPE,
-
+ /** AXIS2_XML_PARSER_TYPE_BUFFER or AXIS2_XML_PARSER_TYPE_DOC is expected */
+ AXIS2_ERROR_XML_PARSER_INVALID_MEM_TYPE,
+
/*
* Group - xml:soap
*/
@@ -527,8 +527,8 @@
struct axis2_error;
struct axis2_error_ops;
- typedef enum axis2_status_codes axis2_status_codes_t;
- typedef enum axis2_error_codes axis2_error_codes_t;
+ typedef enum axis2_status_codes axis2_status_codes_t;
+ typedef enum axis2_error_codes axis2_error_codes_t;
/**
* @defgroup axis2_error Error
@@ -556,15 +556,15 @@
* @return error message for the last error. NULL on error.
*/
axis2_char_t * (AXIS2_CALL *get_message) (struct axis2_error *error);
-
- axis2_status_t (AXIS2_CALL *set_error_number) (struct axis2_error *error
- , axis2_error_codes_t error_number);
-
+
+ axis2_status_t (AXIS2_CALL *set_error_number) (struct axis2_error *error
+ , axis2_error_codes_t error_number);
+
axis2_status_t (AXIS2_CALL *set_status_code) (struct axis2_error *error
- , axis2_status_codes_t status_code);
-
+ , axis2_status_codes_t status_code);
+
axis2_status_t (AXIS2_CALL *get_status_code) (struct axis2_error *error);
-
+
} axis2_error_ops_t;
/**
@@ -592,7 +592,7 @@
#define AXIS2_ERROR_SET_ERROR_NUMBER(error, error_number) \
((error)->ops->set_error_number(error, error_number))
-
+
#define AXIS2_ERROR_SET_STATUS_CODE(error, status_code) \
((error)->ops->set_status_code(error, status_code))
Modified: webservices/axis2/trunk/c/util/include/axis2_file.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_file.h?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_file.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_file.h Sat Jun 3 20:09:08 2006
@@ -91,7 +91,7 @@
*/
AXIS2_DECLARE_DATA struct axis2_file
{
- axis2_file_ops_t *ops;
+ axis2_file_ops_t *ops;
};
/**
@@ -104,28 +104,28 @@
/*************************** Function macros **********************************/
#define AXIS2_FILE_FREE(file, env) \
- ((file)->ops->free (file, env))
+ ((file)->ops->free (file, env))
#define AXIS2_FILE_GET_NAME(file, env) \
- ((file)->ops->get_name (file, env))
+ ((file)->ops->get_name (file, env))
#define AXIS2_FILE_SET_NAME(file, env, name) \
- ((file)->ops->set_name (file, env, name))
+ ((file)->ops->set_name (file, env, name))
#define AXIS2_FILE_GET_PATH(file, env) \
- ((file)->ops->get_path (file, env))
+ ((file)->ops->get_path (file, env))
#define AXIS2_FILE_SET_PATH(file, env, path) \
- ((file)->ops->set_path (file, env, path))
+ ((file)->ops->set_path (file, env, path))
#define AXIS2_FILE_GET_TIMESTAMP(file, env) \
- ((file)->ops->get_timestamp (file, env))
+ ((file)->ops->get_timestamp (file, env))
#define AXIS2_FILE_SET_TIMESTAMP(file, env, timestamp) \
- ((file)->ops->set_timestamp (file, env, timestamp))
+ ((file)->ops->set_timestamp (file, env, timestamp))
#define AXIS2_FILE_CLONE(file, env) \
- ((file)->ops->clone (file, env))
+ ((file)->ops->clone (file, env))
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org