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 [16/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/modules/wsdl/builder/wsdl_pump.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c Sat Jun 3 20:09:08 2006
@@ -74,32 +74,32 @@
/**
* @brief Wsdl pump struct impl
- * Wsdl Pump
+ * Wsdl Pump
*/
typedef struct axis2_wsdl_pump_impl
{
- axis2_wsdl_pump_t wsdl_pump;
+ axis2_wsdl_pump_t wsdl_pump;
int ns_count;
axis2_array_list_t *wsdl4c_svcs;
axis2_wsdl_desc_t *wom_def;
axis2_hash_t * declared_nameSpaces;
axis2_hash_t *resolved_rpc_wrapped_element_map;
- void *parser;
+ void *parser;
} axis2_wsdl_pump_impl_t;
#define AXIS2_INTF_TO_IMPL(wsdl_pump) \
- ((axis2_wsdl_pump_impl_t *)wsdl_pump)
+ ((axis2_wsdl_pump_impl_t *)wsdl_pump)
/************************* Function prototypes ********************************/
axis2_status_t AXIS2_CALL
- axis2_wsdl_pump_free (axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env);
+ axis2_wsdl_pump_free (axis2_wsdl_pump_t *wsdl_pump,
+ const axis2_env_t *env);
axis2_status_t AXIS2_CALL
axis2_wsdl_pump_pump(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env);
+ const axis2_env_t *env);
static axis2_status_t
axis2_wsdl_pump_populate_def(axis2_wsdl_pump_t *wsdl_pump,
@@ -130,8 +130,8 @@
*/
static axis2_bool_t
axis2_wsdl_pump_find_wrappable(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env,
- void *message);
+ const axis2_env_t *env,
+ void *message);
/**
* Pre Condition: The Interface Components must be copied by now.
@@ -150,7 +150,7 @@
*/
static axis2_status_t
axis2_wsdl_pump_populate_binding_operation(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env,
+ const axis2_env_t *env,
void *binding,
axis2_wsdl_binding_op_t *
wsdl_binding_op,
@@ -159,10 +159,10 @@
axis2_status_t AXIS2_CALL
axis2_wsdl_pump_populate_services(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env,
- axis2_wsdl_svc_t *wsdl_svc,
- void *wsdl4c_svc);
-
+ const axis2_env_t *env,
+ axis2_wsdl_svc_t *wsdl_svc,
+ void *wsdl4c_svc);
+
/*
/////////////////////////////////////////////////////////////////////////////
//////////////////////////// Internal Component Copying ///////////////////
@@ -170,11 +170,11 @@
axis2_status_t AXIS2_CALL
axis2_wsdl_pump_populate_operations(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env,
- axis2_wsdl_op_t *wsdl_op,
- void *wsdl4c_op,
- axis2_char_t *namespce_of_op,
- axis2_wsdl_types_t *wsdl_types);
+ const axis2_env_t *env,
+ axis2_wsdl_op_t *wsdl_op,
+ void *wsdl4c_op,
+ axis2_char_t *namespce_of_op,
+ axis2_wsdl_types_t *wsdl_types);
/*
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -187,18 +187,18 @@
*/
static axis2_qname_t *
axis2_wsdl_pump_generate_reference_qname(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env,
- axis2_qname_t *outer_qname,
- void *wsdl4c_msg,
- axis2_bool_t is_wrappable);
+ const axis2_env_t *env,
+ axis2_qname_t *outer_qname,
+ void *wsdl4c_msg,
+ axis2_bool_t is_wrappable);
axis2_status_t AXIS2_CALL
axis2_wsdl_pump_populate_ports(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env,
- axis2_wsdl_endpoint_t *wsdl_endpoint,
- void *wsdl4c_binding,
- char *port_name,
- char *target_namespc);
+ const axis2_env_t *env,
+ axis2_wsdl_endpoint_t *wsdl_endpoint,
+ void *wsdl4c_binding,
+ char *port_name,
+ char *target_namespc);
/**
* This method will fill up the gap of WSDL 1.1 and WSDL 2.0 w.r.t. the
@@ -216,57 +216,57 @@
*/
static axis2_wsdl_interface_t *
axis2_wsdl_pump_get_bound_interface(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env,
- axis2_wsdl_svc_t *wsdl_svc);
+ const axis2_env_t *env,
+ axis2_wsdl_svc_t *wsdl_svc);
/************************** End of function prototypes ************************/
axis2_wsdl_pump_t * AXIS2_CALL
axis2_wsdl_pump_create (const axis2_env_t *env,
- axis2_wsdl_desc_t *wom_def,
- void *wsdl_parser)
+ axis2_wsdl_desc_t *wom_def,
+ void *wsdl_parser)
{
axis2_wsdl_pump_impl_t *wsdl_pump_impl = NULL;
- AXIS2_ENV_CHECK(env, NULL);
-
- wsdl_pump_impl = (axis2_wsdl_pump_impl_t *) AXIS2_MALLOC(env->allocator,
- sizeof(axis2_wsdl_pump_impl_t));
+ AXIS2_ENV_CHECK(env, NULL);
+
+ wsdl_pump_impl = (axis2_wsdl_pump_impl_t *) AXIS2_MALLOC(env->allocator,
+ sizeof(axis2_wsdl_pump_impl_t));
- if(NULL == wsdl_pump_impl)
+ if(NULL == wsdl_pump_impl)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
wsdl_pump_impl->wom_def = NULL;
- wsdl_pump_impl->parser = NULL;
- wsdl_pump_impl->wsdl4c_svcs = NULL;
+ wsdl_pump_impl->parser = NULL;
+ wsdl_pump_impl->wsdl4c_svcs = NULL;
wsdl_pump_impl->wsdl_pump.ops = NULL;
- if(wom_def)
- {
- wsdl_pump_impl->wom_def = wom_def;
- }
-
- if(wsdl_parser)
- {
- wsdl_pump_impl->parser = wsdl_parser;
- }
-
- wsdl_pump_impl->wsdl_pump.ops =
- AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_pump_ops_t));
- if(NULL == wsdl_pump_impl->wsdl_pump.ops)
+ if(wom_def)
+ {
+ wsdl_pump_impl->wom_def = wom_def;
+ }
+
+ if(wsdl_parser)
+ {
+ wsdl_pump_impl->parser = wsdl_parser;
+ }
+
+ wsdl_pump_impl->wsdl_pump.ops =
+ AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_pump_ops_t));
+ if(NULL == wsdl_pump_impl->wsdl_pump.ops)
{
axis2_wsdl_pump_free(&(wsdl_pump_impl->wsdl_pump), env);
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
- wsdl_pump_impl->wsdl_pump.ops->free = axis2_wsdl_pump_free;
- wsdl_pump_impl->wsdl_pump.ops->pump = axis2_wsdl_pump_pump;
-
- return &(wsdl_pump_impl->wsdl_pump);
+ wsdl_pump_impl->wsdl_pump.ops->free = axis2_wsdl_pump_free;
+ wsdl_pump_impl->wsdl_pump.ops->pump = axis2_wsdl_pump_pump;
+
+ return &(wsdl_pump_impl->wsdl_pump);
}
/***************************Function implementation****************************/
@@ -281,21 +281,21 @@
pump_impl = AXIS2_INTF_TO_IMPL(wsdl_pump);
- if(NULL != wsdl_pump->ops)
+ if(NULL != wsdl_pump->ops)
AXIS2_FREE(env->allocator, wsdl_pump->ops);
AXIS2_FREE(env->allocator, pump_impl);
pump_impl = NULL;
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
axis2_status_t AXIS2_CALL
axis2_wsdl_pump_pump(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env)
+ const axis2_env_t *env)
{
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- return axis2_wsdl_pump_populate_def(wsdl_pump, env);
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ return axis2_wsdl_pump_populate_def(wsdl_pump, env);
}
static axis2_status_t
@@ -328,10 +328,10 @@
// 1) The Binding refers to the Interface //
// 2) The Endpoint refers to the Bindings //
// .... //
- // //
+ // //
//////////////////////////////////////////////////////////////////////
*/
- /*
+ /*
///////////////////(2)Copy the Interfaces////////////////////////////
//copy the Interfaces: Get the port_types from axis2_wsdl4c parse OM and
// copy it to the WOM's axis2_wsdl_interface Components
@@ -339,8 +339,8 @@
while (axis2_wsdl4c_parser_get_event_type(pump_impl->parser) !=
AXIS2_WSDL4C_PARSER_END)
{
- element_type = axis2_wsdl4c_parser_get_next_element(pump_impl->parser);
- switch (element_type)
+ element_type = axis2_wsdl4c_parser_get_next_element(pump_impl->parser);
+ switch (element_type)
{
case AXIS2_WSDL4C_PARSER_PORT_TYPE:
wsdl_interface = axis2_wsdl_interface_create(env);
@@ -356,7 +356,7 @@
return status;
}
status = AXIS2_WSDL_DESC_ADD_INTERFACE(pump_impl->wom_def, env,
- wsdl_interface);
+ wsdl_interface);
if(AXIS2_SUCCESS != status)
{
return status;
@@ -364,11 +364,11 @@
break;
/*
- ///////////////////////////////////////(3)Copy the Bindings///////////////////////
+ ///////////////////////////////////////(3)Copy the Bindings///////////////////////
//pump the Bindings: Get the Bindings map from wsdl4c and create a new
// map of wsdl_binding elements. At this point we need to do some extra work since there
//can be header parameters
- */
+ */
case AXIS2_WSDL4C_PARSER_BINDING:
wsdl_binding = axis2_wsdl_binding_create(env);
if(!wsdl_binding)
@@ -413,7 +413,7 @@
break;
}
}
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
/*//////////////////////////////////////////////////////////////////////////////
@@ -440,8 +440,8 @@
axis2_array_list_t *operations = NULL;
axis2_wsdl_op_t *wsdl_op = NULL;
void *operation = NULL;
- axis2_status_t status = AXIS2_FAILURE;
- int i = 0, size = 0;
+ axis2_status_t status = AXIS2_FAILURE;
+ int i = 0, size = 0;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, interface, AXIS2_FAILURE);
@@ -489,7 +489,7 @@
}
if(operations)
AXIS2_ARRAY_LIST_FREE(operations, env);
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
/**
@@ -499,14 +499,14 @@
*/
static axis2_bool_t
axis2_wsdl_pump_find_wrappable(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env,
- void *message)
+ const axis2_env_t *env,
+ void *message)
{
- int no_of_parts = 0;
- axis2_bool_t wrappable = AXIS2_FALSE;
-
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- AXIS2_PARAM_CHECK(env->error, message, AXIS2_FAILURE);
+ int no_of_parts = 0;
+ axis2_bool_t wrappable = AXIS2_FALSE;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, message, AXIS2_FAILURE);
/*
// ********************************************************************************************
@@ -518,17 +518,17 @@
// ********************************************************************************************
*/
- no_of_parts = axis2_wsdl4c_msg_get_num_parts(message);
- if(no_of_parts > 1)
- wrappable = AXIS2_TRUE;
- if(AXIS2_FALSE == wrappable)
- {
- void *part = axis2_wsdl4c_msg_get_message_part_a_index(message, 0);
- int part_id = axis2_wsdl4c_part_type(part);
- if(0 != part_id)
- wrappable = AXIS2_TRUE;
- }
- return wrappable;
+ no_of_parts = axis2_wsdl4c_msg_get_num_parts(message);
+ if(no_of_parts > 1)
+ wrappable = AXIS2_TRUE;
+ if(AXIS2_FALSE == wrappable)
+ {
+ void *part = axis2_wsdl4c_msg_get_message_part_a_index(message, 0);
+ int part_id = axis2_wsdl4c_part_type(part);
+ if(0 != part_id)
+ wrappable = AXIS2_TRUE;
+ }
+ return wrappable;
}
/**
@@ -572,7 +572,7 @@
interface_name = axis2_wsdl4c_port_type_get_name(port_type);
interface_qname = axis2_qname_create(env, interface_name, NULL, NULL);
wsdl_interface = AXIS2_WSDL_DESC_GET_INTERFACE(pump_impl->wom_def, env,
- interface_qname);
+ interface_qname);
if(interface_qname)
{
AXIS2_QNAME_FREE(interface_qname, env);
@@ -611,14 +611,14 @@
operation = AXIS2_ARRAY_LIST_GET(ops, env, i);
op_name = axis2_wsdl4c_operation_get_name(operation);
op_index = axis2_wsdl4c_port_type_get_operation_index(port_type,
- op_name);
+ op_name);
wsdl_binding_op = axis2_wsdl_binding_op_create(env);
if(!wsdl_binding_op)
{
return AXIS2_FAILURE;
}
status = axis2_wsdl_pump_populate_binding_operation(wsdl_pump, env,
- binding, wsdl_binding_op, op_index, op_name);
+ binding, wsdl_binding_op, op_index, op_name);
if(AXIS2_SUCCESS != status)
{
return status;
@@ -635,7 +635,7 @@
}
if(ops)
AXIS2_ARRAY_LIST_FREE(ops, env);
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
/**
@@ -646,7 +646,7 @@
*/
static axis2_status_t
axis2_wsdl_pump_populate_binding_operation(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env,
+ const axis2_env_t *env,
void *binding,
axis2_wsdl_binding_op_t *
wsdl_binding_op,
@@ -659,15 +659,15 @@
void *soap = NULL;
axis2_char_t *action = NULL;
axis2_wsdl4c_style_t style = 0;
- axis2_char_t *str_style = NULL;
+ axis2_char_t *str_style = NULL;
axis2_qname_t *binding_op_qname = NULL;
int nbindings = 0;
int i = 0;
axis2_wsdl_binding_msg_ref_t *wsdl_input_binding = NULL;
axis2_wsdl_binding_msg_ref_t *wsdl_output_binding = NULL;
axis2_wsdl_binding_msg_ref_t *wsdl_fault_binding = NULL;
- axis2_status_t status = AXIS2_FAILURE;
- axis2_wsdl_ext_soap_op_t *ext_soap_op = NULL;
+ axis2_status_t status = AXIS2_FAILURE;
+ axis2_wsdl_ext_soap_op_t *ext_soap_op = NULL;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, wsdl_binding_op, AXIS2_FAILURE);
@@ -677,24 +677,24 @@
axis2_wsdl4c_binding_get_op_binding(binding, op_index, &bindings);
soap_op_binding_id = bindings[0];
soap = axis2_wsdl4c_parser_get_extensibility_handler_a_ns(pump_impl->parser,
- AXIS2_WSDL4C_SOAP_BINDING_URI);
+ AXIS2_WSDL4C_SOAP_BINDING_URI);
axis2_wsdl4c_soap_get_operation_info(soap, soap_op_binding_id, &action,
- &style);
- ext_soap_op = axis2_wsdl_ext_soap_op_create(env, NULL);
- AXIS2_WSDL_EXT_SOAP_OP_SET_SOAP_ACTION(ext_soap_op, env, action);
- if(AXIS2_WSDL4C_RPC == style)
- {
- str_style = AXIS2_STRDUP("rpc", env);
- }
- if(AXIS2_WSDL4C_DOC == style)
- {
- str_style = AXIS2_STRDUP("document", env);
- }
- AXIS2_WSDL_EXT_SOAP_OP_SET_STYLE(ext_soap_op, env, str_style);
+ &style);
+ ext_soap_op = axis2_wsdl_ext_soap_op_create(env, NULL);
+ AXIS2_WSDL_EXT_SOAP_OP_SET_SOAP_ACTION(ext_soap_op, env, action);
+ if(AXIS2_WSDL4C_RPC == style)
+ {
+ str_style = AXIS2_STRDUP("rpc", env);
+ }
+ if(AXIS2_WSDL4C_DOC == style)
+ {
+ str_style = AXIS2_STRDUP("document", env);
+ }
+ AXIS2_WSDL_EXT_SOAP_OP_SET_STYLE(ext_soap_op, env, str_style);
ext_soap_op->base.namespc = AXIS2_STRDUP(AXIS2_WSDL4C_SOAP_BINDING_URI, env);
if(!ext_soap_op->base.namespc) return AXIS2_FAILURE;
- AXIS2_WSDL_COMPONENT_ADD_EXTENSIBILITY_ELEMENT(wsdl_binding_op->
- extensible_component->wsdl_component, env, ext_soap_op);
+ AXIS2_WSDL_COMPONENT_ADD_EXTENSIBILITY_ELEMENT(wsdl_binding_op->
+ extensible_component->wsdl_component, env, ext_soap_op);
binding_op_qname = axis2_qname_create(env, op_name, NULL, NULL);
AXIS2_WSDL_BINDING_OP_SET_QNAME(wsdl_binding_op, env, binding_op_qname);
@@ -714,23 +714,23 @@
axis2_wsdl_ext_soap_body_t *soap_body = NULL;
axis2_wsdl4c_encoding_t use = 0;
axis2_char_t *nsp = NULL;
- axis2_char_t *str_use = NULL;
+ axis2_char_t *str_use = NULL;
axis2_char_t *encoding_style = NULL;
axis2_wsdl4c_soap_get_body_info(soap, bindings[i], &nsp, &use, &encoding_style);
soap_body = axis2_wsdl_ext_soap_body_create(env, NULL);
if(!soap_body) return AXIS2_FAILURE;
- if(AXIS2_WSDL4C_RPC == use)
- str_use = AXIS2_STRDUP("rpc", env);
- if(AXIS2_WSDL4C_DOC == use)
- str_use = AXIS2_STRDUP("document", env);
- AXIS2_WSDL_EXT_SOAP_BODY_SET_USE(soap_body, env, str_use);
- if(str_use)
- {
- AXIS2_FREE(env->allocator, str_use);
- str_use = NULL;
- }
- AXIS2_WSDL_EXT_SOAP_BODY_SET_NAMESPC_URI(soap_body, env, nsp);
+ if(AXIS2_WSDL4C_RPC == use)
+ str_use = AXIS2_STRDUP("rpc", env);
+ if(AXIS2_WSDL4C_DOC == use)
+ str_use = AXIS2_STRDUP("document", env);
+ AXIS2_WSDL_EXT_SOAP_BODY_SET_USE(soap_body, env, str_use);
+ if(str_use)
+ {
+ AXIS2_FREE(env->allocator, str_use);
+ str_use = NULL;
+ }
+ AXIS2_WSDL_EXT_SOAP_BODY_SET_NAMESPC_URI(soap_body, env, nsp);
AXIS2_WSDL_COMPONENT_ADD_EXTENSIBILITY_ELEMENT(wsdl_input_binding->
extensible_component->wsdl_component, env, soap_body);
}
@@ -738,31 +738,31 @@
{
axis2_wsdl_ext_soap_header_t *soap_header = NULL;
int part_id = 0;
- axis2_char_t *part_name = NULL;
- axis2_char_t *msg_name = NULL;
- axis2_qname_t *msg_qname = NULL;
+ axis2_char_t *part_name = NULL;
+ axis2_char_t *msg_name = NULL;
+ axis2_qname_t *msg_qname = NULL;
void *message = NULL;
axis2_wsdl4c_soap_get_header_info(soap, bindings[i], &part_id, &message);
- part_name = axis2_wsdl4c_msg_get_part_name(message, part_id);
- msg_name = axis2_wsdl4c_msg_get_name(message);
- msg_qname = axis2_qname_create(env, msg_name, NULL, NULL);
+ part_name = axis2_wsdl4c_msg_get_part_name(message, part_id);
+ msg_name = axis2_wsdl4c_msg_get_name(message);
+ msg_qname = axis2_qname_create(env, msg_name, NULL, NULL);
AXIS2_WSDL_EXT_SOAP_HEADER_SET_PART(soap_header, env, part_name);
AXIS2_WSDL_EXT_SOAP_HEADER_SET_MSG_QNAME(soap_header, env, msg_qname);
- if(msg_qname)
- {
- AXIS2_QNAME_FREE(msg_qname, env);
- msg_qname = NULL;
- }
+ if(msg_qname)
+ {
+ AXIS2_QNAME_FREE(msg_qname, env);
+ msg_qname = NULL;
+ }
AXIS2_WSDL_COMPONENT_ADD_EXTENSIBILITY_ELEMENT(wsdl_input_binding->
- extensible_component->wsdl_component, env, soap_header);
+ extensible_component->wsdl_component, env, soap_header);
}
status = AXIS2_WSDL_BINDING_OP_SET_INPUT(wsdl_binding_op, env,
- wsdl_input_binding);
- if(AXIS2_SUCCESS != status)
- {
- return status;
- }
+ wsdl_input_binding);
+ if(AXIS2_SUCCESS != status)
+ {
+ return status;
+ }
}
/* Fill output message reference */
@@ -780,19 +780,19 @@
{
axis2_wsdl_ext_soap_body_t *soap_body = NULL;
axis2_wsdl4c_encoding_t use = 0;
- axis2_char_t *str_use = NULL;
+ axis2_char_t *str_use = NULL;
axis2_char_t *nsp = NULL;
axis2_char_t *encoding_style = NULL;
axis2_wsdl4c_soap_get_body_info(soap, bindings[i], &nsp, &use, &encoding_style);
soap_body = axis2_wsdl_ext_soap_body_create(env, NULL);
if(!soap_body) return AXIS2_FAILURE;
- if(AXIS2_WSDL4C_RPC == use)
- str_use = AXIS2_STRDUP("rpc", env);
- if(AXIS2_WSDL4C_DOC == use)
- str_use = AXIS2_STRDUP("document", env);
- AXIS2_WSDL_EXT_SOAP_BODY_SET_USE(soap_body, env, str_use);
- AXIS2_WSDL_EXT_SOAP_BODY_SET_NAMESPC_URI(soap_body, env, nsp);
+ if(AXIS2_WSDL4C_RPC == use)
+ str_use = AXIS2_STRDUP("rpc", env);
+ if(AXIS2_WSDL4C_DOC == use)
+ str_use = AXIS2_STRDUP("document", env);
+ AXIS2_WSDL_EXT_SOAP_BODY_SET_USE(soap_body, env, str_use);
+ AXIS2_WSDL_EXT_SOAP_BODY_SET_NAMESPC_URI(soap_body, env, nsp);
AXIS2_WSDL_COMPONENT_ADD_EXTENSIBILITY_ELEMENT(wsdl_output_binding->
extensible_component->wsdl_component, env, soap_body);
}
@@ -800,16 +800,16 @@
{
axis2_wsdl_ext_soap_header_t *soap_header = NULL;
int part_id = 0;
- axis2_char_t *part_name = NULL;
- axis2_char_t *msg_name = NULL;
- axis2_qname_t *msg_qname = NULL;
+ axis2_char_t *part_name = NULL;
+ axis2_char_t *msg_name = NULL;
+ axis2_qname_t *msg_qname = NULL;
void *message = NULL;
-
+
axis2_wsdl4c_soap_get_header_info(soap, bindings[i], &part_id, &message);
- part_name = axis2_wsdl4c_msg_get_part_name(message, part_id);
- msg_name = axis2_wsdl4c_msg_get_name(message);
- msg_qname = axis2_qname_create(env, msg_name, NULL, NULL);
+ part_name = axis2_wsdl4c_msg_get_part_name(message, part_id);
+ msg_name = axis2_wsdl4c_msg_get_name(message);
+ msg_qname = axis2_qname_create(env, msg_name, NULL, NULL);
AXIS2_WSDL_EXT_SOAP_HEADER_SET_PART(soap_header, env, part_name);
AXIS2_WSDL_EXT_SOAP_HEADER_SET_MSG_QNAME(soap_header, env, msg_qname);
AXIS2_WSDL_COMPONENT_ADD_EXTENSIBILITY_ELEMENT(wsdl_output_binding->
@@ -817,9 +817,9 @@
}
status = AXIS2_WSDL_BINDING_OP_SET_OUTPUT(wsdl_binding_op, env, wsdl_output_binding);
if(AXIS2_SUCCESS != status)
- {
- return status;
- }
+ {
+ return status;
+ }
}
/* Fill fault message reference */
@@ -837,17 +837,17 @@
{
axis2_wsdl_ext_soap_body_t *soap_body = NULL;
axis2_wsdl4c_encoding_t use = 0;
- axis2_char_t *str_use = NULL;
+ axis2_char_t *str_use = NULL;
axis2_char_t *nsp = NULL;
axis2_char_t *encoding_style;
axis2_wsdl4c_soap_get_body_info(soap, bindings[i], &nsp, &use, &encoding_style);
- if(AXIS2_WSDL4C_RPC == use)
- str_use = AXIS2_STRDUP("rpc", env);
- if(AXIS2_WSDL4C_DOC == use)
- str_use = AXIS2_STRDUP("document", env);
- AXIS2_WSDL_EXT_SOAP_BODY_SET_USE(soap_body, env, str_use);
- AXIS2_WSDL_EXT_SOAP_BODY_SET_NAMESPC_URI(soap_body, env, nsp);
+ if(AXIS2_WSDL4C_RPC == use)
+ str_use = AXIS2_STRDUP("rpc", env);
+ if(AXIS2_WSDL4C_DOC == use)
+ str_use = AXIS2_STRDUP("document", env);
+ AXIS2_WSDL_EXT_SOAP_BODY_SET_USE(soap_body, env, str_use);
+ AXIS2_WSDL_EXT_SOAP_BODY_SET_NAMESPC_URI(soap_body, env, nsp);
AXIS2_WSDL_COMPONENT_ADD_EXTENSIBILITY_ELEMENT(wsdl_fault_binding->
extensible_component->wsdl_component, env, soap_body);
}
@@ -855,97 +855,97 @@
{
axis2_wsdl_ext_soap_header_t *soap_header = NULL;
int part_id = 0;
- axis2_char_t *part_name = NULL;
- axis2_char_t *msg_name = NULL;
- axis2_qname_t *msg_qname = NULL;
+ axis2_char_t *part_name = NULL;
+ axis2_char_t *msg_name = NULL;
+ axis2_qname_t *msg_qname = NULL;
void *message = NULL;
axis2_wsdl4c_soap_get_header_info(soap, bindings[i], &part_id, &message);
- part_name = axis2_wsdl4c_msg_get_part_name(message, part_id);
- msg_name = axis2_wsdl4c_msg_get_name(message);
- msg_qname = axis2_qname_create(env, msg_name, NULL, NULL);
+ part_name = axis2_wsdl4c_msg_get_part_name(message, part_id);
+ msg_name = axis2_wsdl4c_msg_get_name(message);
+ msg_qname = axis2_qname_create(env, msg_name, NULL, NULL);
AXIS2_WSDL_EXT_SOAP_HEADER_SET_PART(soap_header, env, part_name);
AXIS2_WSDL_EXT_SOAP_HEADER_SET_MSG_QNAME(soap_header, env, msg_qname);
AXIS2_WSDL_COMPONENT_ADD_EXTENSIBILITY_ELEMENT(wsdl_fault_binding->
extensible_component->wsdl_component, env, soap_header);
}
status = AXIS2_WSDL_BINDING_OP_SET_OUTPUT(wsdl_binding_op, env, wsdl_fault_binding);
- if(AXIS2_SUCCESS != status)
- {
- return status;
- }
+ if(AXIS2_SUCCESS != status)
+ {
+ return status;
+ }
}
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
axis2_status_t AXIS2_CALL
axis2_wsdl_pump_populate_services(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env,
- axis2_wsdl_svc_t *wsdl_svc,
- void *wsdl4c_svc)
+ const axis2_env_t *env,
+ axis2_wsdl_svc_t *wsdl_svc,
+ void *wsdl4c_svc)
{
- axis2_wsdl_pump_impl_t *pump_impl = NULL;
+ axis2_wsdl_pump_impl_t *pump_impl = NULL;
axis2_qname_t *svc_qname = NULL;
- axis2_char_t *svc_name = NULL;
- axis2_array_list_t *ports = NULL;
- int i = 0, size = 0;
- axis2_wsdl_interface_t *bound_interface = NULL;
- axis2_status_t status = AXIS2_FAILURE;
-
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- AXIS2_PARAM_CHECK(env->error, wsdl_svc, AXIS2_FAILURE);
- AXIS2_PARAM_CHECK(env->error, wsdl4c_svc, AXIS2_FAILURE);
- pump_impl = AXIS2_INTF_TO_IMPL(wsdl_pump);
-
- svc_name = axis2_wsdl4c_service_get_name(wsdl4c_svc);
- svc_qname = axis2_qname_create(env, svc_name, NULL, NULL);
- if(!svc_qname) return AXIS2_FAILURE;
- status = AXIS2_WSDL_SVC_SET_QNAME(wsdl_svc, env, svc_qname);
- if(AXIS2_SUCCESS != status) return status;
-
- bound_interface = axis2_wsdl_pump_get_bound_interface(wsdl_pump, env,
- wsdl_svc);
- status = AXIS2_WSDL_SVC_SET_SVC_INTERFACE(wsdl_svc, env, bound_interface);
- if(AXIS2_SUCCESS != status) return status;
- ports = axis2_wsdl4c_service_get_ports(wsdl4c_svc);
- size = AXIS2_ARRAY_LIST_SIZE(ports ,env);
- for(i = 0; i < size; i++)
- {
- char *port_name = NULL;
- axis2_wsdl_endpoint_t *wsdl_endpoint = NULL;
- char *svc_location = NULL;
- void *soap = NULL;
- void *binding = NULL;
- int svc_ext_id = 0;
- axis2_wsdl_ext_soap_address_t *ext_soap_address = NULL;
-
- port_name = AXIS2_ARRAY_LIST_GET(ports, env, i);
- binding = axis2_wsdl4c_service_get_port_binding(wsdl4c_svc, port_name);
- wsdl_endpoint = axis2_wsdl_endpoint_create(env);
- if(!wsdl_endpoint) return AXIS2_FAILURE;
- status = axis2_wsdl_pump_populate_ports(wsdl_pump, env, wsdl_endpoint,
+ axis2_char_t *svc_name = NULL;
+ axis2_array_list_t *ports = NULL;
+ int i = 0, size = 0;
+ axis2_wsdl_interface_t *bound_interface = NULL;
+ axis2_status_t status = AXIS2_FAILURE;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, wsdl_svc, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, wsdl4c_svc, AXIS2_FAILURE);
+ pump_impl = AXIS2_INTF_TO_IMPL(wsdl_pump);
+
+ svc_name = axis2_wsdl4c_service_get_name(wsdl4c_svc);
+ svc_qname = axis2_qname_create(env, svc_name, NULL, NULL);
+ if(!svc_qname) return AXIS2_FAILURE;
+ status = AXIS2_WSDL_SVC_SET_QNAME(wsdl_svc, env, svc_qname);
+ if(AXIS2_SUCCESS != status) return status;
+
+ bound_interface = axis2_wsdl_pump_get_bound_interface(wsdl_pump, env,
+ wsdl_svc);
+ status = AXIS2_WSDL_SVC_SET_SVC_INTERFACE(wsdl_svc, env, bound_interface);
+ if(AXIS2_SUCCESS != status) return status;
+ ports = axis2_wsdl4c_service_get_ports(wsdl4c_svc);
+ size = AXIS2_ARRAY_LIST_SIZE(ports ,env);
+ for(i = 0; i < size; i++)
+ {
+ char *port_name = NULL;
+ axis2_wsdl_endpoint_t *wsdl_endpoint = NULL;
+ char *svc_location = NULL;
+ void *soap = NULL;
+ void *binding = NULL;
+ int svc_ext_id = 0;
+ axis2_wsdl_ext_soap_address_t *ext_soap_address = NULL;
+
+ port_name = AXIS2_ARRAY_LIST_GET(ports, env, i);
+ binding = axis2_wsdl4c_service_get_port_binding(wsdl4c_svc, port_name);
+ wsdl_endpoint = axis2_wsdl_endpoint_create(env);
+ if(!wsdl_endpoint) return AXIS2_FAILURE;
+ status = axis2_wsdl_pump_populate_ports(wsdl_pump, env, wsdl_endpoint,
binding, port_name, NULL);
- if(AXIS2_SUCCESS != status) return status;
- soap = axis2_wsdl4c_parser_get_extensibility_handler_a_ns(pump_impl->parser,
- AXIS2_WSDL4C_SOAP_BINDING_URI);
- if(!soap) return AXIS2_FAILURE;
- svc_ext_id = axis2_wsdl4c_binding_get_service_ext_id(binding);
- axis2_wsdl4c_soap_get_service_location(soap, svc_ext_id, &svc_location);
- ext_soap_address = axis2_wsdl_ext_soap_address_create(env, NULL);
- if(!ext_soap_address) return AXIS2_FAILURE;
- AXIS2_WSDL_EXT_SOAP_ADDRESS_SET_LOCATION_URI(ext_soap_address, env, svc_location);
- ext_soap_address->base.namespc = AXIS2_STRDUP(AXIS2_WSDL4C_SOAP_BINDING_URI, env);
+ if(AXIS2_SUCCESS != status) return status;
+ soap = axis2_wsdl4c_parser_get_extensibility_handler_a_ns(pump_impl->parser,
+ AXIS2_WSDL4C_SOAP_BINDING_URI);
+ if(!soap) return AXIS2_FAILURE;
+ svc_ext_id = axis2_wsdl4c_binding_get_service_ext_id(binding);
+ axis2_wsdl4c_soap_get_service_location(soap, svc_ext_id, &svc_location);
+ ext_soap_address = axis2_wsdl_ext_soap_address_create(env, NULL);
+ if(!ext_soap_address) return AXIS2_FAILURE;
+ AXIS2_WSDL_EXT_SOAP_ADDRESS_SET_LOCATION_URI(ext_soap_address, env, svc_location);
+ ext_soap_address->base.namespc = AXIS2_STRDUP(AXIS2_WSDL4C_SOAP_BINDING_URI, env);
if(!ext_soap_address->base.namespc) return AXIS2_FAILURE;
- AXIS2_WSDL_COMPONENT_ADD_EXTENSIBILITY_ELEMENT(wsdl_endpoint->wsdl_component,
+ AXIS2_WSDL_COMPONENT_ADD_EXTENSIBILITY_ELEMENT(wsdl_endpoint->wsdl_component,
env, ext_soap_address);
- status = AXIS2_WSDL_SVC_SET_ENDPOINT(wsdl_svc, env, wsdl_endpoint);
- if(AXIS2_SUCCESS != status) return status;
- }
+ status = AXIS2_WSDL_SVC_SET_ENDPOINT(wsdl_svc, env, wsdl_endpoint);
+ if(AXIS2_SUCCESS != status) return status;
+ }
if(ports)
AXIS2_ARRAY_LIST_FREE(ports, env);
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
-
+
/*
/////////////////////////////////////////////////////////////////////////////
//////////////////////////// Internal Component Copying ///////////////////
@@ -953,163 +953,163 @@
axis2_status_t AXIS2_CALL
axis2_wsdl_pump_populate_operations(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env,
- axis2_wsdl_op_t *wsdl_op,
- void *wsdl4c_op,
- axis2_char_t *namespc_of_op,
- axis2_wsdl_types_t *wsdl_types)
+ const axis2_env_t *env,
+ axis2_wsdl_op_t *wsdl_op,
+ void *wsdl4c_op,
+ axis2_char_t *namespc_of_op,
+ axis2_wsdl_types_t *wsdl_types)
{
- axis2_wsdl_pump_impl_t *pump_impl = NULL;
- axis2_char_t *op_name = NULL;
- axis2_qname_t *op_qname = NULL;
- void *wsdl4c_input_msg = NULL;
- void *wsdl4c_output_msg = NULL;
- void *wsdl4c_fault_msg = NULL;
- axis2_wsdl_msg_ref_t *wsdl_input_msg = NULL;
- axis2_array_list_t *faults = NULL;
- axis2_qname_t *wrapped_input_qname = NULL;
- axis2_qname_t *wrapped_output_qname = NULL;
- axis2_char_t *qname_localpart = NULL;
- axis2_char_t *qname_uri = NULL;
- axis2_char_t *qname_prefix = NULL;
- axis2_char_t *temp = NULL;
- int i = 0, size = 0;
- axis2_char_t *mep = NULL;
-
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- AXIS2_PARAM_CHECK(env->error, namespc_of_op, AXIS2_FAILURE);
- AXIS2_PARAM_CHECK(env->error, wsdl4c_op, AXIS2_FAILURE);
- pump_impl = AXIS2_INTF_TO_IMPL(wsdl_pump);
-
- wsdl_input_msg = axis2_wsdl_msg_ref_create(env);
- if(!wsdl_input_msg) return AXIS2_FAILURE;
- AXIS2_WSDL_MSG_REF_SET_DIRECTION(wsdl_input_msg, env, AXIS2_WSDL_MESSAGE_DIRECTION_IN);
- AXIS2_WSDL_MSG_REF_SET_MSG_LABEL(wsdl_input_msg, env, AXIS2_WSDL_MESSAGE_LABEL_IN_VALUE);
+ axis2_wsdl_pump_impl_t *pump_impl = NULL;
+ axis2_char_t *op_name = NULL;
+ axis2_qname_t *op_qname = NULL;
+ void *wsdl4c_input_msg = NULL;
+ void *wsdl4c_output_msg = NULL;
+ void *wsdl4c_fault_msg = NULL;
+ axis2_wsdl_msg_ref_t *wsdl_input_msg = NULL;
+ axis2_array_list_t *faults = NULL;
+ axis2_qname_t *wrapped_input_qname = NULL;
+ axis2_qname_t *wrapped_output_qname = NULL;
+ axis2_char_t *qname_localpart = NULL;
+ axis2_char_t *qname_uri = NULL;
+ axis2_char_t *qname_prefix = NULL;
+ axis2_char_t *temp = NULL;
+ int i = 0, size = 0;
+ axis2_char_t *mep = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, namespc_of_op, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, wsdl4c_op, AXIS2_FAILURE);
+ pump_impl = AXIS2_INTF_TO_IMPL(wsdl_pump);
+
+ wsdl_input_msg = axis2_wsdl_msg_ref_create(env);
+ if(!wsdl_input_msg) return AXIS2_FAILURE;
+ AXIS2_WSDL_MSG_REF_SET_DIRECTION(wsdl_input_msg, env, AXIS2_WSDL_MESSAGE_DIRECTION_IN);
+ AXIS2_WSDL_MSG_REF_SET_MSG_LABEL(wsdl_input_msg, env, AXIS2_WSDL_MESSAGE_LABEL_IN_VALUE);
-
+
/* Copy Name Attribute */
- op_name = axis2_wsdl4c_operation_get_name(wsdl4c_op);
- op_qname = axis2_qname_create(env, op_name, namespc_of_op, NULL);
- if(!op_qname) return AXIS2_FAILURE;
- AXIS2_WSDL_OP_SET_QNAME(wsdl_op, env, op_qname);
+ op_name = axis2_wsdl4c_operation_get_name(wsdl4c_op);
+ op_qname = axis2_qname_create(env, op_name, namespc_of_op, NULL);
+ if(!op_qname) return AXIS2_FAILURE;
+ AXIS2_WSDL_OP_SET_QNAME(wsdl_op, env, op_qname);
/*
- * This code make no attempt to make use of the special xs:Token
+ * This code make no attempt to make use of the special xs:Token
* defined in the WSDL 2.0. eg like #any, #none
* Create the Input Message and add
- */
+ */
wsdl4c_input_msg = axis2_wsdl4c_operation_get_message(wsdl4c_op,
- AXIS2_WSDL4C_INPUT);
- wrapped_input_qname = AXIS2_WSDL_OP_GET_QNAME(wsdl_op, env);
- if(wsdl4c_input_msg)
- {
- axis2_wsdl_msg_ref_t *wsdl_input_msg = NULL;
- axis2_qname_t *ref_qname = NULL;
- axis2_bool_t is_wrappable = AXIS2_FALSE;
-
- wsdl_input_msg = axis2_wsdl_msg_ref_create(env);
- if(!wsdl_input_msg)
- {
- return AXIS2_FAILURE;
- }
- AXIS2_WSDL_MSG_REF_SET_DIRECTION(wsdl_input_msg, env,
- AXIS2_WSDL_MESSAGE_DIRECTION_IN);
- AXIS2_WSDL_MSG_REF_SET_MSG_LABEL(wsdl_input_msg, env,
- AXIS2_WSDL_MESSAGE_LABEL_IN_VALUE);
- is_wrappable = axis2_wsdl_pump_find_wrappable(wsdl_pump, env,
- wsdl4c_input_msg);
- ref_qname = axis2_wsdl_pump_generate_reference_qname(wsdl_pump, env,
- wrapped_input_qname, wsdl4c_input_msg, is_wrappable);
- AXIS2_WSDL_MSG_REF_SET_ELEMENT(wsdl_input_msg, env, ref_qname);
- if(ref_qname)
- {
- AXIS2_QNAME_FREE(ref_qname, env);
- ref_qname = NULL;
- }
- AXIS2_WSDL_OP_SET_INPUT_MSG(wsdl_op, env, wsdl_input_msg);
- }
+ AXIS2_WSDL4C_INPUT);
+ wrapped_input_qname = AXIS2_WSDL_OP_GET_QNAME(wsdl_op, env);
+ if(wsdl4c_input_msg)
+ {
+ axis2_wsdl_msg_ref_t *wsdl_input_msg = NULL;
+ axis2_qname_t *ref_qname = NULL;
+ axis2_bool_t is_wrappable = AXIS2_FALSE;
+
+ wsdl_input_msg = axis2_wsdl_msg_ref_create(env);
+ if(!wsdl_input_msg)
+ {
+ return AXIS2_FAILURE;
+ }
+ AXIS2_WSDL_MSG_REF_SET_DIRECTION(wsdl_input_msg, env,
+ AXIS2_WSDL_MESSAGE_DIRECTION_IN);
+ AXIS2_WSDL_MSG_REF_SET_MSG_LABEL(wsdl_input_msg, env,
+ AXIS2_WSDL_MESSAGE_LABEL_IN_VALUE);
+ is_wrappable = axis2_wsdl_pump_find_wrappable(wsdl_pump, env,
+ wsdl4c_input_msg);
+ ref_qname = axis2_wsdl_pump_generate_reference_qname(wsdl_pump, env,
+ wrapped_input_qname, wsdl4c_input_msg, is_wrappable);
+ AXIS2_WSDL_MSG_REF_SET_ELEMENT(wsdl_input_msg, env, ref_qname);
+ if(ref_qname)
+ {
+ AXIS2_QNAME_FREE(ref_qname, env);
+ ref_qname = NULL;
+ }
+ AXIS2_WSDL_OP_SET_INPUT_MSG(wsdl_op, env, wsdl_input_msg);
+ }
/* Create an output message and add */
- temp = AXIS2_QNAME_GET_LOCALPART(wrapped_input_qname, env);
- qname_localpart = AXIS2_STRACAT(temp, "Response", env);
- qname_uri = AXIS2_QNAME_GET_URI(wrapped_input_qname, env);
+ temp = AXIS2_QNAME_GET_LOCALPART(wrapped_input_qname, env);
+ qname_localpart = AXIS2_STRACAT(temp, "Response", env);
+ qname_uri = AXIS2_QNAME_GET_URI(wrapped_input_qname, env);
qname_prefix = AXIS2_QNAME_GET_PREFIX(wrapped_input_qname, env);
- wrapped_output_qname = axis2_qname_create(env, qname_localpart, qname_uri,
- qname_prefix);
- wsdl4c_output_msg = axis2_wsdl4c_operation_get_message(wsdl4c_op,
- AXIS2_WSDL4C_OUTPUT);
- if(wsdl4c_output_msg)
- {
- axis2_wsdl_msg_ref_t *wsdl_output_msg = NULL;
- axis2_qname_t *ref_qname = NULL;
- axis2_bool_t is_wrappable = AXIS2_FALSE;
-
- wsdl_output_msg = axis2_wsdl_msg_ref_create(env);
- if(!wsdl_output_msg)
- {
- return AXIS2_FAILURE;
- }
- AXIS2_WSDL_MSG_REF_SET_DIRECTION(wsdl_output_msg, env,
- AXIS2_WSDL_MESSAGE_DIRECTION_OUT);
- AXIS2_WSDL_MSG_REF_SET_MSG_LABEL(wsdl_output_msg, env,
- AXIS2_WSDL_MESSAGE_LABEL_OUT_VALUE);
- is_wrappable = axis2_wsdl_pump_find_wrappable(wsdl_pump, env,
- wsdl4c_output_msg);
- ref_qname = axis2_wsdl_pump_generate_reference_qname(wsdl_pump, env,
- wrapped_output_qname, wsdl4c_output_msg, is_wrappable);
- AXIS2_WSDL_MSG_REF_SET_ELEMENT(wsdl_output_msg, env, ref_qname);
- if(ref_qname)
- {
- AXIS2_QNAME_FREE(ref_qname, env);
- ref_qname = NULL;
- }
- AXIS2_WSDL_OP_SET_OUTPUT_MSG(wsdl_op, env, wsdl_output_msg);
- }
+ wrapped_output_qname = axis2_qname_create(env, qname_localpart, qname_uri,
+ qname_prefix);
+ wsdl4c_output_msg = axis2_wsdl4c_operation_get_message(wsdl4c_op,
+ AXIS2_WSDL4C_OUTPUT);
+ if(wsdl4c_output_msg)
+ {
+ axis2_wsdl_msg_ref_t *wsdl_output_msg = NULL;
+ axis2_qname_t *ref_qname = NULL;
+ axis2_bool_t is_wrappable = AXIS2_FALSE;
+
+ wsdl_output_msg = axis2_wsdl_msg_ref_create(env);
+ if(!wsdl_output_msg)
+ {
+ return AXIS2_FAILURE;
+ }
+ AXIS2_WSDL_MSG_REF_SET_DIRECTION(wsdl_output_msg, env,
+ AXIS2_WSDL_MESSAGE_DIRECTION_OUT);
+ AXIS2_WSDL_MSG_REF_SET_MSG_LABEL(wsdl_output_msg, env,
+ AXIS2_WSDL_MESSAGE_LABEL_OUT_VALUE);
+ is_wrappable = axis2_wsdl_pump_find_wrappable(wsdl_pump, env,
+ wsdl4c_output_msg);
+ ref_qname = axis2_wsdl_pump_generate_reference_qname(wsdl_pump, env,
+ wrapped_output_qname, wsdl4c_output_msg, is_wrappable);
+ AXIS2_WSDL_MSG_REF_SET_ELEMENT(wsdl_output_msg, env, ref_qname);
+ if(ref_qname)
+ {
+ AXIS2_QNAME_FREE(ref_qname, env);
+ ref_qname = NULL;
+ }
+ AXIS2_WSDL_OP_SET_OUTPUT_MSG(wsdl_op, env, wsdl_output_msg);
+ }
- faults = axis2_wsdl4c_operation_get_faults(wsdl4c_op);
+ faults = axis2_wsdl4c_operation_get_faults(wsdl4c_op);
if(faults)
{
size = AXIS2_ARRAY_LIST_SIZE(faults, env);
}
- for(i = 0; i < size; i++)
- {
- wsdl4c_fault_msg = AXIS2_ARRAY_LIST_GET(faults, env, i);
- if(wsdl4c_fault_msg)
- {
- axis2_wsdl_fault_ref_t *wsdl_fault_msg = NULL;
- axis2_char_t *fault_name = NULL;
- axis2_qname_t *fault_qname = NULL;
- axis2_qname_t *ref_qname = NULL;
- axis2_bool_t is_wrappable = AXIS2_FALSE;
-
- wsdl_fault_msg = axis2_wsdl_fault_ref_create(env);
- if(!wsdl_fault_msg)
- {
- return AXIS2_FAILURE;
- }
- AXIS2_WSDL_MSG_REF_SET_DIRECTION(wsdl_fault_msg, env,
- AXIS2_WSDL_MESSAGE_DIRECTION_OUT);
- is_wrappable = axis2_wsdl_pump_find_wrappable(wsdl_pump, env,
- wsdl4c_fault_msg);
- fault_name = axis2_wsdl4c_msg_get_name(wsdl4c_fault_msg);
- fault_qname = axis2_qname_create(env, fault_name, NULL, NULL);
- ref_qname = axis2_wsdl_pump_generate_reference_qname(wsdl_pump, env,
- fault_qname, wsdl4c_fault_msg, is_wrappable);
- AXIS2_WSDL_FAULT_REF_SET_REF(wsdl_fault_msg, env, ref_qname);
- if(ref_qname)
- {
- AXIS2_QNAME_FREE(ref_qname, env);
- ref_qname = NULL;
- }
- AXIS2_WSDL_OP_ADD_OUT_FAULT(wsdl_op, env, wsdl_fault_msg);
- }
- }
+ for(i = 0; i < size; i++)
+ {
+ wsdl4c_fault_msg = AXIS2_ARRAY_LIST_GET(faults, env, i);
+ if(wsdl4c_fault_msg)
+ {
+ axis2_wsdl_fault_ref_t *wsdl_fault_msg = NULL;
+ axis2_char_t *fault_name = NULL;
+ axis2_qname_t *fault_qname = NULL;
+ axis2_qname_t *ref_qname = NULL;
+ axis2_bool_t is_wrappable = AXIS2_FALSE;
+
+ wsdl_fault_msg = axis2_wsdl_fault_ref_create(env);
+ if(!wsdl_fault_msg)
+ {
+ return AXIS2_FAILURE;
+ }
+ AXIS2_WSDL_MSG_REF_SET_DIRECTION(wsdl_fault_msg, env,
+ AXIS2_WSDL_MESSAGE_DIRECTION_OUT);
+ is_wrappable = axis2_wsdl_pump_find_wrappable(wsdl_pump, env,
+ wsdl4c_fault_msg);
+ fault_name = axis2_wsdl4c_msg_get_name(wsdl4c_fault_msg);
+ fault_qname = axis2_qname_create(env, fault_name, NULL, NULL);
+ ref_qname = axis2_wsdl_pump_generate_reference_qname(wsdl_pump, env,
+ fault_qname, wsdl4c_fault_msg, is_wrappable);
+ AXIS2_WSDL_FAULT_REF_SET_REF(wsdl_fault_msg, env, ref_qname);
+ if(ref_qname)
+ {
+ AXIS2_QNAME_FREE(ref_qname, env);
+ ref_qname = NULL;
+ }
+ AXIS2_WSDL_OP_ADD_OUT_FAULT(wsdl_op, env, wsdl_fault_msg);
+ }
+ }
if(faults)
AXIS2_ARRAY_LIST_FREE(faults, env);
/* Set the MEP */
- mep = axis2_wsdl11_mep_finder_get_mep(wsdl4c_op, env);
- return AXIS2_WSDL_OP_SET_MSG_EXCHANGE_PATTERN(wsdl_op, env, mep);
+ mep = axis2_wsdl11_mep_finder_get_mep(wsdl4c_op, env);
+ return AXIS2_WSDL_OP_SET_MSG_EXCHANGE_PATTERN(wsdl_op, env, mep);
}
/*
@@ -1123,38 +1123,38 @@
*/
static axis2_qname_t *
axis2_wsdl_pump_generate_reference_qname(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env,
- axis2_qname_t *outer_qname,
- void *wsdl4c_msg,
- axis2_bool_t is_wrappable)
+ const axis2_env_t *env,
+ axis2_qname_t *outer_qname,
+ void *wsdl4c_msg,
+ axis2_bool_t is_wrappable)
{
axis2_wsdl_pump_impl_t *pump_impl = NULL;
- axis2_qname_t *reference_qname = NULL;
-
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- AXIS2_PARAM_CHECK(env->error, outer_qname, AXIS2_FAILURE);
- AXIS2_PARAM_CHECK(env->error, wsdl4c_msg, AXIS2_FAILURE);
+ axis2_qname_t *reference_qname = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, outer_qname, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, wsdl4c_msg, AXIS2_FAILURE);
pump_impl = AXIS2_INTF_TO_IMPL(wsdl_pump);
- /*if(AXIS2_TRUE == is_wrappable)
- {
-
+ /*if(AXIS2_TRUE == is_wrappable)
+ {
+
}
- else
- {*/
- int i = 0;
- int no_of_parts = 0;
-
- no_of_parts = axis2_wsdl4c_msg_get_num_parts(wsdl4c_msg);
- for(i = 0; i < no_of_parts; i++)
- {
- void *out_part = axis2_wsdl4c_msg_get_message_part_a_index(wsdl4c_msg, i);
+ else
+ {*/
+ int i = 0;
+ int no_of_parts = 0;
+
+ no_of_parts = axis2_wsdl4c_msg_get_num_parts(wsdl4c_msg);
+ for(i = 0; i < no_of_parts; i++)
+ {
+ void *out_part = axis2_wsdl4c_msg_get_message_part_a_index(wsdl4c_msg, i);
if(!out_part)
{
/* TODO set error code */
return NULL;
}
- void *element = axis2_wsdl4c_part_element(out_part);
+ void *element = axis2_wsdl4c_part_element(out_part);
int schema_id = axis2_wsdl4c_part_schema_id(out_part);
void *sp = axis2_wsdl4c_parser_get_schema_parser_a_schema_id(
pump_impl->parser, schema_id);
@@ -1164,11 +1164,11 @@
return NULL;
}
axis2_char_t *namespc = axis2_wsdl4c_schema_parser_get_namespace(sp);
- axis2_char_t *name = axis2_wsdl4c_element_get_name(element);
- reference_qname = axis2_qname_create(env, name, namespc, NULL);
- if(!reference_qname) return AXIS2_FAILURE;
- }
-
+ axis2_char_t *name = axis2_wsdl4c_element_get_name(element);
+ reference_qname = axis2_qname_create(env, name, namespc, NULL);
+ if(!reference_qname) return AXIS2_FAILURE;
+ }
+
/*}*/
return reference_qname;
@@ -1176,40 +1176,40 @@
axis2_status_t AXIS2_CALL
axis2_wsdl_pump_populate_ports(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env,
- axis2_wsdl_endpoint_t *wsdl_endpoint,
- void *wsdl4c_binding,
- char *port_name,
- char *target_namespc)
+ const axis2_env_t *env,
+ axis2_wsdl_endpoint_t *wsdl_endpoint,
+ void *wsdl4c_binding,
+ char *port_name,
+ char *target_namespc)
{
- axis2_wsdl_pump_impl_t *pump_impl = NULL;
- axis2_qname_t *port_qname = NULL;
- axis2_char_t *binding_name = NULL;
- axis2_qname_t *binding_qname = NULL;
- axis2_wsdl_binding_t *wsdl_binding = NULL;
-
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- AXIS2_PARAM_CHECK(env->error, wsdl_endpoint, AXIS2_FAILURE);
- AXIS2_PARAM_CHECK(env->error, wsdl4c_binding, AXIS2_FAILURE);
- pump_impl = AXIS2_INTF_TO_IMPL(wsdl_pump);
-
- port_qname = axis2_qname_create(env, port_name, target_namespc, NULL);
- if(!port_qname) return AXIS2_FAILURE;
+ axis2_wsdl_pump_impl_t *pump_impl = NULL;
+ axis2_qname_t *port_qname = NULL;
+ axis2_char_t *binding_name = NULL;
+ axis2_qname_t *binding_qname = NULL;
+ axis2_wsdl_binding_t *wsdl_binding = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, wsdl_endpoint, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, wsdl4c_binding, AXIS2_FAILURE);
+ pump_impl = AXIS2_INTF_TO_IMPL(wsdl_pump);
+
+ port_qname = axis2_qname_create(env, port_name, target_namespc, NULL);
+ if(!port_qname) return AXIS2_FAILURE;
AXIS2_WSDL_ENDPOINT_SET_NAME(wsdl_endpoint, env, port_qname);
- if(port_qname)
- {
- AXIS2_QNAME_FREE(port_qname, env);
- port_qname = NULL;
- }
- binding_name = axis2_wsdl4c_binding_get_name(wsdl4c_binding);
- binding_qname = axis2_qname_create(env, binding_name, target_namespc, NULL);
- wsdl_binding = AXIS2_WSDL_DESC_GET_BINDING(pump_impl->wom_def, env, binding_qname);
+ if(port_qname)
+ {
+ AXIS2_QNAME_FREE(port_qname, env);
+ port_qname = NULL;
+ }
+ binding_name = axis2_wsdl4c_binding_get_name(wsdl4c_binding);
+ binding_qname = axis2_qname_create(env, binding_name, target_namespc, NULL);
+ wsdl_binding = AXIS2_WSDL_DESC_GET_BINDING(pump_impl->wom_def, env, binding_qname);
if(binding_qname)
- {
- AXIS2_QNAME_FREE(binding_qname, env);
- binding_qname = NULL;
- }
- return AXIS2_WSDL_ENDPOINT_SET_BINDING(wsdl_endpoint, env, wsdl_binding);
+ {
+ AXIS2_QNAME_FREE(binding_qname, env);
+ binding_qname = NULL;
+ }
+ return AXIS2_WSDL_ENDPOINT_SET_BINDING(wsdl_endpoint, env, wsdl_binding);
}
/**
@@ -1229,46 +1229,46 @@
*/
static axis2_wsdl_interface_t *
axis2_wsdl_pump_get_bound_interface(axis2_wsdl_pump_t *wsdl_pump,
- const axis2_env_t *env,
- axis2_wsdl_svc_t *wsdl_svc)
+ const axis2_env_t *env,
+ axis2_wsdl_svc_t *wsdl_svc)
{
- axis2_wsdl_pump_impl_t *pump_impl = NULL;
+ axis2_wsdl_pump_impl_t *pump_impl = NULL;
int no_of_interfaces = 0;
- axis2_hash_t *interfaces = NULL;
-
- AXIS2_ENV_CHECK(env, NULL);
- AXIS2_PARAM_CHECK(env->error, wsdl_svc, NULL);
- pump_impl = AXIS2_INTF_TO_IMPL(wsdl_pump);
-
- interfaces = AXIS2_WSDL_DESC_GET_INTERFACES(pump_impl->wom_def, env);
- no_of_interfaces = axis2_hash_count(interfaces);
+ axis2_hash_t *interfaces = NULL;
+
+ AXIS2_ENV_CHECK(env, NULL);
+ AXIS2_PARAM_CHECK(env->error, wsdl_svc, NULL);
+ pump_impl = AXIS2_INTF_TO_IMPL(wsdl_pump);
+
+ interfaces = AXIS2_WSDL_DESC_GET_INTERFACES(pump_impl->wom_def, env);
+ no_of_interfaces = axis2_hash_count(interfaces);
/* Return error code if there are no interfaces defined as at yet */
- if(0 == no_of_interfaces)
- {
- AXIS2_ERROR_SET(env->error,
- AXIS2_ERROR_INTERFACES_OR_PORTS_NOT_FOUND_FOR_PARTIALLY_BUILT_WOM,
- AXIS2_FAILURE);
- return NULL;
- }
- /*
- * If there is only one Interface available then return that because
- * normally that interface must be the one to the service should get bound.
- */
- if(1 == no_of_interfaces)
- {
- axis2_hash_index_t *index = NULL;
- void *value = NULL;
- axis2_wsdl_interface_t *interface = NULL;
-
- index = axis2_hash_first (interfaces, env);
- axis2_hash_this(index, NULL, NULL, &value);
- interface = (axis2_wsdl_interface_t *) value;
- return interface;
- }
- if( 1 < no_of_interfaces)
- {
- /* TODO Handle this situation */
- }
- return NULL;
+ if(0 == no_of_interfaces)
+ {
+ AXIS2_ERROR_SET(env->error,
+ AXIS2_ERROR_INTERFACES_OR_PORTS_NOT_FOUND_FOR_PARTIALLY_BUILT_WOM,
+ AXIS2_FAILURE);
+ return NULL;
+ }
+ /*
+ * If there is only one Interface available then return that because
+ * normally that interface must be the one to the service should get bound.
+ */
+ if(1 == no_of_interfaces)
+ {
+ axis2_hash_index_t *index = NULL;
+ void *value = NULL;
+ axis2_wsdl_interface_t *interface = NULL;
+
+ index = axis2_hash_first (interfaces, env);
+ axis2_hash_this(index, NULL, NULL, &value);
+ interface = (axis2_wsdl_interface_t *) value;
+ return interface;
+ }
+ if( 1 < no_of_interfaces)
+ {
+ /* TODO Handle this situation */
+ }
+ return NULL;
}
Modified: webservices/axis2/trunk/c/modules/wsdl/wsdl_binding.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/wsdl/wsdl_binding.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/wsdl_binding.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/wsdl_binding.c Sat Jun 3 20:09:08 2006
@@ -18,11 +18,11 @@
/**
* @brief Wsdl binding struct impl
- * Wsdl features
+ * Wsdl features
*/
typedef struct axis2_wsdl_binding_impl
{
- axis2_wsdl_binding_t wsdl_binding;
+ axis2_wsdl_binding_t wsdl_binding;
/**
* Field name
@@ -47,13 +47,13 @@
} axis2_wsdl_binding_impl_t;
#define AXIS2_INTF_TO_IMPL(wsdl_binding) \
- ((axis2_wsdl_binding_impl_t *)wsdl_binding)
+ ((axis2_wsdl_binding_impl_t *)wsdl_binding)
/************************* Function prototypes ********************************/
axis2_status_t AXIS2_CALL
- axis2_wsdl_binding_free (axis2_wsdl_binding_t *wsdl_binding,
- const axis2_env_t *env);
+ axis2_wsdl_binding_free (axis2_wsdl_binding_t *wsdl_binding,
+ const axis2_env_t *env);
axis2_wsdl_interface_t * AXIS2_CALL
@@ -122,12 +122,12 @@
axis2_wsdl_binding_create (const axis2_env_t *env)
{
axis2_wsdl_binding_impl_t *wsdl_binding_impl = NULL;
- AXIS2_ENV_CHECK(env, NULL);
-
- wsdl_binding_impl = (axis2_wsdl_binding_impl_t *) AXIS2_MALLOC(env->allocator,
- sizeof(axis2_wsdl_binding_impl_t));
-
- if(NULL == wsdl_binding_impl)
+ AXIS2_ENV_CHECK(env, NULL);
+
+ wsdl_binding_impl = (axis2_wsdl_binding_impl_t *) AXIS2_MALLOC(env->allocator,
+ sizeof(axis2_wsdl_binding_impl_t));
+
+ if(NULL == wsdl_binding_impl)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
@@ -135,7 +135,7 @@
wsdl_binding_impl->qname = NULL;
wsdl_binding_impl->bound_interface = NULL;
- wsdl_binding_impl->binding_ops = NULL;
+ wsdl_binding_impl->binding_ops = NULL;
wsdl_binding_impl->binding_faults = NULL;
wsdl_binding_impl->wsdl_binding.extensible_component = NULL;
wsdl_binding_impl->wsdl_binding.ops = NULL;
@@ -164,24 +164,24 @@
return NULL;
}
- wsdl_binding_impl->wsdl_binding.ops =
- AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_binding_ops_t));
- if(NULL == wsdl_binding_impl->wsdl_binding.ops)
+ wsdl_binding_impl->wsdl_binding.ops =
+ AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_binding_ops_t));
+ if(NULL == wsdl_binding_impl->wsdl_binding.ops)
{
axis2_wsdl_binding_free(&(wsdl_binding_impl->wsdl_binding), env);
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
- wsdl_binding_impl->wsdl_binding.ops->free = axis2_wsdl_binding_free;
+ wsdl_binding_impl->wsdl_binding.ops->free = axis2_wsdl_binding_free;
- wsdl_binding_impl->wsdl_binding.ops->get_bound_interface =
+ wsdl_binding_impl->wsdl_binding.ops->get_bound_interface =
axis2_wsdl_binding_get_bound_interface;
wsdl_binding_impl->wsdl_binding.ops->set_bound_interface =
axis2_wsdl_binding_set_bound_interface;
- wsdl_binding_impl->wsdl_binding.ops->get_name =
+ wsdl_binding_impl->wsdl_binding.ops->get_name =
axis2_wsdl_binding_get_name;
wsdl_binding_impl->wsdl_binding.ops->set_name =
@@ -192,7 +192,7 @@
wsdl_binding_impl->wsdl_binding.ops->get_binding_faults =
axis2_wsdl_binding_get_binding_faults;
-
+
wsdl_binding_impl->wsdl_binding.ops->set_binding_faults =
axis2_wsdl_binding_set_binding_faults;
@@ -213,8 +213,8 @@
wsdl_binding_impl->wsdl_binding.ops->get_binding_fault =
axis2_wsdl_binding_get_binding_fault;
-
- return &(wsdl_binding_impl->wsdl_binding);
+
+ return &(wsdl_binding_impl->wsdl_binding);
}
/***************************Function implementation****************************/
@@ -229,7 +229,7 @@
binding_impl = AXIS2_INTF_TO_IMPL(wsdl_binding);
- if(NULL != wsdl_binding->ops)
+ if(NULL != wsdl_binding->ops)
{
AXIS2_FREE(env->allocator, wsdl_binding->ops);
wsdl_binding->ops = NULL;
@@ -302,7 +302,7 @@
AXIS2_FREE(env->allocator, binding_impl);
binding_impl = NULL;
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
axis2_wsdl_interface_t * AXIS2_CALL
Modified: webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_fault.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_fault.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_fault.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_fault.c Sat Jun 3 20:09:08 2006
@@ -18,11 +18,11 @@
/**
* @brief Wsdl Binding Fault struct impl
- * Wsdl Binding Fault
+ * Wsdl Binding Fault
*/
typedef struct axis2_wsdl_binding_fault_impl
{
- axis2_wsdl_binding_fault_t binding_fault;
+ axis2_wsdl_binding_fault_t binding_fault;
/**
* Field ref
@@ -32,13 +32,13 @@
} axis2_wsdl_binding_fault_impl_t;
#define AXIS2_INTF_TO_IMPL(binding_fault) \
- ((axis2_wsdl_binding_fault_impl_t *)binding_fault)
+ ((axis2_wsdl_binding_fault_impl_t *)binding_fault)
/************************* Function prototypes ********************************/
axis2_status_t AXIS2_CALL
- axis2_binding_fault_free (axis2_wsdl_binding_fault_t *binding_fault,
- const axis2_env_t *env);
+ axis2_binding_fault_free (axis2_wsdl_binding_fault_t *binding_fault,
+ const axis2_env_t *env);
axis2_qname_t *AXIS2_CALL
axis2_binding_fault_get_ref(axis2_wsdl_binding_fault_t *binding_fault,
const axis2_env_t *env);
@@ -55,18 +55,18 @@
{
axis2_wsdl_binding_fault_impl_t *binding_fault_impl = NULL;
- AXIS2_ENV_CHECK(env, NULL);
-
- binding_fault_impl = (axis2_wsdl_binding_fault_impl_t *)
+ AXIS2_ENV_CHECK(env, NULL);
+
+ binding_fault_impl = (axis2_wsdl_binding_fault_impl_t *)
AXIS2_MALLOC(env->allocator, sizeof(axis2_wsdl_binding_fault_impl_t));
-
-
- if(NULL == binding_fault_impl)
+
+
+ if(NULL == binding_fault_impl)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
-
+
binding_fault_impl->ref = NULL;
binding_fault_impl->binding_fault.extensible_component = NULL;
binding_fault_impl->binding_fault.ops = NULL;
@@ -77,28 +77,28 @@
if(NULL == binding_fault_impl->binding_fault.extensible_component)
{
axis2_binding_fault_free(&(binding_fault_impl->binding_fault), env);
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
- binding_fault_impl->binding_fault.ops =
- AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_binding_fault_ops_t));
- if(NULL == binding_fault_impl->binding_fault.ops)
+ binding_fault_impl->binding_fault.ops =
+ AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_binding_fault_ops_t));
+ if(NULL == binding_fault_impl->binding_fault.ops)
{
axis2_binding_fault_free(&(binding_fault_impl->binding_fault), env);
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
- binding_fault_impl->binding_fault.ops->free = axis2_binding_fault_free;
+ binding_fault_impl->binding_fault.ops->free = axis2_binding_fault_free;
- binding_fault_impl->binding_fault.ops->get_ref =
+ binding_fault_impl->binding_fault.ops->get_ref =
axis2_binding_fault_get_ref;
- binding_fault_impl->binding_fault.ops->set_ref =
+ binding_fault_impl->binding_fault.ops->set_ref =
axis2_binding_fault_set_ref;
- return &(binding_fault_impl->binding_fault);
+ return &(binding_fault_impl->binding_fault);
}
/***************************Function implementation****************************/
@@ -112,7 +112,7 @@
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
binding_fault_impl = AXIS2_INTF_TO_IMPL(binding_fault);
- if(NULL != binding_fault->ops)
+ if(NULL != binding_fault->ops)
{
AXIS2_FREE(env->allocator, binding_fault->ops);
binding_fault->ops = NULL;
@@ -132,7 +132,7 @@
if(binding_fault_impl)
AXIS2_FREE(env->allocator, binding_fault_impl);
binding_fault_impl = NULL;
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
Modified: webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_msg_ref.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_msg_ref.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_msg_ref.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_msg_ref.c Sat Jun 3 20:09:08 2006
@@ -39,13 +39,13 @@
} axis2_wsdl_binding_msg_ref_impl_t;
#define AXIS2_INTF_TO_IMPL(binding_msg_ref) \
- ((axis2_wsdl_binding_msg_ref_impl_t *)binding_msg_ref)
+ ((axis2_wsdl_binding_msg_ref_impl_t *)binding_msg_ref)
/************************* Function prototypes ********************************/
axis2_status_t AXIS2_CALL
- axis2_wsdl_binding_msg_ref_free (axis2_wsdl_binding_msg_ref_t *binding_msg_ref,
- const axis2_env_t *env);
+ axis2_wsdl_binding_msg_ref_free (axis2_wsdl_binding_msg_ref_t *binding_msg_ref,
+ const axis2_env_t *env);
axis2_char_t * AXIS2_CALL
axis2_wsdl_binding_msg_ref_get_direction(axis2_wsdl_binding_msg_ref_t *binding_msg_ref,
@@ -72,13 +72,13 @@
{
axis2_wsdl_binding_msg_ref_impl_t *binding_msg_ref_impl = NULL;
- AXIS2_ENV_CHECK(env, NULL);
-
- binding_msg_ref_impl = (axis2_wsdl_binding_msg_ref_impl_t *)
+ AXIS2_ENV_CHECK(env, NULL);
+
+ binding_msg_ref_impl = (axis2_wsdl_binding_msg_ref_impl_t *)
AXIS2_MALLOC(env->allocator, sizeof(axis2_wsdl_binding_msg_ref_impl_t));
-
-
- if(NULL == binding_msg_ref_impl)
+
+
+ if(NULL == binding_msg_ref_impl)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
@@ -86,7 +86,7 @@
binding_msg_ref_impl->msg_label = NULL;
binding_msg_ref_impl->direction = NULL;
- binding_msg_ref_impl->binding_msg_ref.extensible_component = NULL;
+ binding_msg_ref_impl->binding_msg_ref.extensible_component = NULL;
binding_msg_ref_impl->binding_msg_ref.ops = NULL;
binding_msg_ref_impl->binding_msg_ref.extensible_component =
@@ -96,35 +96,35 @@
{
axis2_wsdl_binding_msg_ref_free(&(binding_msg_ref_impl->binding_msg_ref),
env);
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
- binding_msg_ref_impl->binding_msg_ref.ops =
- AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_binding_msg_ref_ops_t));
- if(NULL == binding_msg_ref_impl->binding_msg_ref.ops)
+ binding_msg_ref_impl->binding_msg_ref.ops =
+ AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_binding_msg_ref_ops_t));
+ if(NULL == binding_msg_ref_impl->binding_msg_ref.ops)
{
axis2_wsdl_binding_msg_ref_free(&(binding_msg_ref_impl->binding_msg_ref),
env);
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
- binding_msg_ref_impl->binding_msg_ref.ops->free = axis2_wsdl_binding_msg_ref_free;
+ binding_msg_ref_impl->binding_msg_ref.ops->free = axis2_wsdl_binding_msg_ref_free;
- binding_msg_ref_impl->binding_msg_ref.ops->get_direction =
+ binding_msg_ref_impl->binding_msg_ref.ops->get_direction =
axis2_wsdl_binding_msg_ref_get_direction;
- binding_msg_ref_impl->binding_msg_ref.ops->set_direction =
+ binding_msg_ref_impl->binding_msg_ref.ops->set_direction =
axis2_wsdl_binding_msg_ref_set_direction;
binding_msg_ref_impl->binding_msg_ref.ops->get_msg_label =
axis2_wsdl_binding_msg_ref_get_msg_label;
- binding_msg_ref_impl->binding_msg_ref.ops->set_msg_label =
+ binding_msg_ref_impl->binding_msg_ref.ops->set_msg_label =
axis2_wsdl_binding_msg_ref_set_msg_label;
- return &(binding_msg_ref_impl->binding_msg_ref);
+ return &(binding_msg_ref_impl->binding_msg_ref);
}
/***************************Function implementation****************************/
@@ -139,7 +139,7 @@
binding_msg_ref_impl = AXIS2_INTF_TO_IMPL(binding_msg_ref);
- if(NULL != binding_msg_ref->ops)
+ if(NULL != binding_msg_ref->ops)
{
AXIS2_FREE(env->allocator, binding_msg_ref->ops);
binding_msg_ref->ops = NULL;
@@ -164,7 +164,7 @@
if(binding_msg_ref_impl)
AXIS2_FREE(env->allocator, binding_msg_ref_impl);
binding_msg_ref_impl = NULL;
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
axis2_char_t * AXIS2_CALL
Modified: webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_op.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_op.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_op.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_op.c Sat Jun 3 20:09:08 2006
@@ -2,12 +2,12 @@
/**
* @brief Wsdl Component struct impl
- * Axis2 Wsdl Component impl
+ * Axis2 Wsdl Component impl
*/
typedef struct axis2_wsdl_binding_op_impl
{
- axis2_wsdl_binding_op_t binding_op;
- /**
+ axis2_wsdl_binding_op_t binding_op;
+ /**
* Field name
*/
axis2_qname_t *qname;
@@ -108,7 +108,7 @@
const axis2_env_t *env,
axis2_linked_list_t *out_faults);
-
+
/***************************** End of function headers ************************/
axis2_wsdl_binding_op_t * AXIS2_CALL
@@ -118,14 +118,14 @@
AXIS2_ENV_CHECK(env, NULL);
- binding_op_impl = (axis2_wsdl_binding_op_impl_t *)
+ binding_op_impl = (axis2_wsdl_binding_op_impl_t *)
AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_binding_op_impl_t));
- if(NULL == binding_op_impl)
- {
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ if(NULL == binding_op_impl)
+ {
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
- }
+ }
binding_op_impl->qname = NULL;
binding_op_impl->op = NULL;
@@ -135,52 +135,52 @@
binding_op_impl->out_faults = NULL;
binding_op_impl->binding_op.extensible_component = NULL;
binding_op_impl->binding_op.ops = NULL;
-
+
binding_op_impl->in_faults = axis2_linked_list_create (env);
- if(NULL == binding_op_impl->in_faults)
- {
- axis2_wsdl_binding_op_free(&(binding_op_impl->binding_op),
+ if(NULL == binding_op_impl->in_faults)
+ {
+ axis2_wsdl_binding_op_free(&(binding_op_impl->binding_op),
env);
- AXIS2_ERROR_SET (env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_ERROR_SET (env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
- }
+ }
binding_op_impl->out_faults = axis2_linked_list_create (env);
- if(NULL == binding_op_impl->out_faults)
- {
+ if(NULL == binding_op_impl->out_faults)
+ {
axis2_wsdl_binding_op_free(&(binding_op_impl->binding_op),
env);
- AXIS2_ERROR_SET (env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_ERROR_SET (env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
- }
+ }
binding_op_impl->binding_op.extensible_component =
axis2_wsdl_extensible_component_create(env);
- if(NULL == binding_op_impl->binding_op.extensible_component)
- {
+ if(NULL == binding_op_impl->binding_op.extensible_component)
+ {
axis2_wsdl_binding_op_free(&(binding_op_impl->binding_op),
env);
- AXIS2_ERROR_SET (env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_ERROR_SET (env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
- }
+ }
- binding_op_impl->binding_op.ops = (axis2_wsdl_binding_op_ops_t *)
- AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_binding_op_ops_t));
+ binding_op_impl->binding_op.ops = (axis2_wsdl_binding_op_ops_t *)
+ AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_binding_op_ops_t));
- if(NULL == binding_op_impl->binding_op.ops)
- {
+ if(NULL == binding_op_impl->binding_op.ops)
+ {
axis2_wsdl_binding_op_free(&(binding_op_impl->binding_op),
env);
- AXIS2_ERROR_SET (env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_ERROR_SET (env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
- }
+ }
- binding_op_impl->binding_op.ops->free = axis2_wsdl_binding_op_free;
+ binding_op_impl->binding_op.ops->free = axis2_wsdl_binding_op_free;
- binding_op_impl->binding_op.ops->get_input =
+ binding_op_impl->binding_op.ops->get_input =
axis2_wsdl_binding_op_get_input;
binding_op_impl->binding_op.ops->set_input =
@@ -222,7 +222,7 @@
binding_op_impl->binding_op.ops->set_out_faults =
axis2_wsdl_binding_op_set_out_faults;
- return &(binding_op_impl->binding_op);
+ return &(binding_op_impl->binding_op);
}
/******************************************************************************/
@@ -237,7 +237,7 @@
binding_op_impl = AXIS2_INTF_TO_IMPL(binding_op);
- if(NULL != binding_op->ops)
+ if(NULL != binding_op->ops)
{
AXIS2_FREE(env->allocator, binding_op->ops);
binding_op->ops = NULL;
@@ -296,7 +296,7 @@
AXIS2_FREE(env->allocator, binding_op_impl);
binding_op_impl = NULL;
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
axis2_wsdl_binding_msg_ref_t * AXIS2_CALL
Modified: webservices/axis2/trunk/c/modules/wsdl/wsdl_component.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/wsdl/wsdl_component.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/wsdl_component.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/wsdl_component.c Sat Jun 3 20:09:08 2006
@@ -3,12 +3,12 @@
/**
* @brief Wsdl Component struct impl
- * Axis2 Wsdl Component impl
+ * Axis2 Wsdl Component impl
*/
typedef struct axis2_wsdl_component_impl
{
- axis2_wsdl_component_t wsdl_component;
- axis2_hash_t *component_properties;
+ axis2_wsdl_component_t wsdl_component;
+ axis2_hash_t *component_properties;
/**
* Field Namespace Qualified elements that can be sticked in the component.
*/
@@ -35,7 +35,7 @@
axis2_wsdl_component_set_component_properties(
axis2_wsdl_component_t *wsdl_component,
const axis2_env_t *env,
- axis2_hash_t *properties);
+ axis2_hash_t *properties);
axis2_hash_t * AXIS2_CALL
axis2_wsdl_component_get_component_properties(
@@ -44,14 +44,14 @@
axis2_status_t AXIS2_CALL
axis2_wsdl_component_set_component_property(
- axis2_wsdl_component_t *wsdl_component,
+ axis2_wsdl_component_t *wsdl_component,
const axis2_env_t *env,
axis2_char_t *key,
void *value);
void * AXIS2_CALL
axis2_wsdl_component_get_component_property(
- axis2_wsdl_component_t *wsdl_component,
+ axis2_wsdl_component_t *wsdl_component,
const axis2_env_t *env,
axis2_char_t *key);
@@ -75,39 +75,39 @@
AXIS2_ENV_CHECK(env, NULL);
- wsdl_component_impl = (axis2_wsdl_component_impl_t *) AXIS2_MALLOC (env->
+ wsdl_component_impl = (axis2_wsdl_component_impl_t *) AXIS2_MALLOC (env->
allocator, sizeof(axis2_wsdl_component_impl_t));
- if(NULL == wsdl_component_impl)
- {
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ if(NULL == wsdl_component_impl)
+ {
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
- }
+ }
wsdl_component_impl->component_properties = NULL;
wsdl_component_impl->elements = NULL;
wsdl_component_impl->attributes = NULL;
-
+
wsdl_component_impl->component_properties = axis2_hash_make (env);
if(NULL == wsdl_component_impl->component_properties)
{
axis2_wsdl_component_free(&(wsdl_component_impl->wsdl_component), env);
- AXIS2_ERROR_SET (env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_ERROR_SET (env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
- wsdl_component_impl->wsdl_component.ops = (axis2_wsdl_component_ops_t *)
- AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_component_ops_t));
+ wsdl_component_impl->wsdl_component.ops = (axis2_wsdl_component_ops_t *)
+ AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_component_ops_t));
- if(NULL == wsdl_component_impl->wsdl_component.ops)
- {
- axis2_wsdl_component_free(&(wsdl_component_impl->wsdl_component), env);
- AXIS2_ERROR_SET (env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ if(NULL == wsdl_component_impl->wsdl_component.ops)
+ {
+ axis2_wsdl_component_free(&(wsdl_component_impl->wsdl_component), env);
+ AXIS2_ERROR_SET (env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
- }
+ }
- wsdl_component_impl->wsdl_component.ops->free = axis2_wsdl_component_free;
- wsdl_component_impl->wsdl_component.ops->set_component_properties =
+ wsdl_component_impl->wsdl_component.ops->free = axis2_wsdl_component_free;
+ wsdl_component_impl->wsdl_component.ops->set_component_properties =
axis2_wsdl_component_set_component_properties;
wsdl_component_impl->wsdl_component.ops->get_component_properties =
axis2_wsdl_component_get_component_properties;
@@ -119,8 +119,8 @@
axis2_wsdl_component_add_extensibility_element;
wsdl_component_impl->wsdl_component.ops->get_extensibility_elements =
axis2_wsdl_component_get_extensibility_elements;
-
- return &(wsdl_component_impl->wsdl_component);
+
+ return &(wsdl_component_impl->wsdl_component);
}
/******************************************************************************/
@@ -135,7 +135,7 @@
component_impl = AXIS2_INTF_TO_IMPL(wsdl_component);
- if(NULL != wsdl_component->ops)
+ if(NULL != wsdl_component->ops)
{
AXIS2_FREE(env->allocator, wsdl_component->ops);
wsdl_component->ops = NULL;
@@ -181,12 +181,12 @@
AXIS2_FREE(env->allocator, component_impl);
component_impl = NULL;
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
axis2_status_t AXIS2_CALL
axis2_wsdl_component_set_component_properties(
- axis2_wsdl_component_t *wsdl_component,
+ axis2_wsdl_component_t *wsdl_component,
const axis2_env_t *env,
axis2_hash_t *properties)
{
@@ -219,8 +219,8 @@
axis2_hash_free(component_impl->component_properties, env);
component_impl->component_properties = NULL;
}
- component_impl->component_properties = properties;
- return AXIS2_SUCCESS;
+ component_impl->component_properties = properties;
+ return AXIS2_SUCCESS;
}
axis2_hash_t * AXIS2_CALL
@@ -228,8 +228,8 @@
axis2_wsdl_component_t *wsdl_component,
const axis2_env_t *env)
{
- AXIS2_ENV_CHECK(env, NULL);
- return AXIS2_INTF_TO_IMPL(wsdl_component)->component_properties;
+ AXIS2_ENV_CHECK(env, NULL);
+ return AXIS2_INTF_TO_IMPL(wsdl_component)->component_properties;
}
axis2_status_t AXIS2_CALL
@@ -246,22 +246,22 @@
AXIS2_PARAM_CHECK(env->error, value, AXIS2_FAILURE);
component_impl = AXIS2_INTF_TO_IMPL(wsdl_component);
- axis2_hash_set (component_impl->component_properties, key,
+ axis2_hash_set (component_impl->component_properties, key,
AXIS2_HASH_KEY_STRING, value);
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
void *AXIS2_CALL
axis2_wsdl_component_get_component_property(
- axis2_wsdl_component_t *wsdl_component,
+ axis2_wsdl_component_t *wsdl_component,
const axis2_env_t *env,
axis2_char_t *key)
{
AXIS2_ENV_CHECK(env, NULL);
AXIS2_PARAM_CHECK(env->error, key, NULL);
-
- return (void *)(axis2_hash_get (AXIS2_INTF_TO_IMPL(wsdl_component)->
+
+ return (void *)(axis2_hash_get (AXIS2_INTF_TO_IMPL(wsdl_component)->
component_properties, key, AXIS2_HASH_KEY_STRING));
}
Modified: webservices/axis2/trunk/c/modules/wsdl/wsdl_desc.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/wsdl/wsdl_desc.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/wsdl_desc.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/wsdl_desc.c Sat Jun 3 20:09:08 2006
@@ -26,11 +26,11 @@
/**
* @brief Wsdl Description struct impl
- * Axis2 Wsdl Description Implementation
+ * Axis2 Wsdl Description Implementation
*/
typedef struct axis2_wsdl_desc_impl
{
- axis2_wsdl_desc_t wsdl_desc;
+ axis2_wsdl_desc_t wsdl_desc;
/**
* The name token of WSDL 1.1 Definition.
*/
@@ -78,12 +78,12 @@
} axis2_wsdl_desc_impl_t;
#define AXIS2_INTF_TO_IMPL(wsdl_desc) ((axis2_wsdl_desc_impl_t *)wsdl_desc)
-
+
/*************************** Function headers *********************************/
axis2_status_t AXIS2_CALL
axis2_wsdl_desc_free (axis2_wsdl_desc_t *wsdl_desc,
- const axis2_env_t *env);
+ const axis2_env_t *env);
/**
* Returns a Map of <code>wsdl_bindings</code> Objects keyed by the
@@ -365,7 +365,7 @@
axis2_wsdl_include_t *wsdl_include);
-/************************* End of function headers ****************************/
+/************************* End of function headers ****************************/
axis2_wsdl_desc_t * AXIS2_CALL
axis2_wsdl_desc_create (const axis2_env_t *env)
@@ -374,14 +374,14 @@
AXIS2_ENV_CHECK(env, NULL);
- wsdl_desc_impl = (axis2_wsdl_desc_impl_t *) AXIS2_MALLOC (env->
+ wsdl_desc_impl = (axis2_wsdl_desc_impl_t *) AXIS2_MALLOC (env->
allocator, sizeof (axis2_wsdl_desc_impl_t));
- if(NULL == wsdl_desc_impl)
- {
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ if(NULL == wsdl_desc_impl)
+ {
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
- }
+ }
wsdl_desc_impl->wsdl1_def_name = NULL;
wsdl_desc_impl->target_namespace = NULL;
@@ -396,23 +396,23 @@
wsdl_desc_impl->wsdl_desc.component = axis2_wsdl_component_create(env);
- if(NULL == wsdl_desc_impl->wsdl_desc.component)
- {
+ if(NULL == wsdl_desc_impl->wsdl_desc.component)
+ {
axis2_wsdl_desc_free(&(wsdl_desc_impl->wsdl_desc), env);
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
- }
+ }
wsdl_desc_impl->wsdl_desc.ops = AXIS2_MALLOC(env->allocator,
sizeof(axis2_wsdl_desc_ops_t));
- if(NULL == wsdl_desc_impl->wsdl_desc.ops)
- {
+ if(NULL == wsdl_desc_impl->wsdl_desc.ops)
+ {
axis2_wsdl_desc_free(&(wsdl_desc_impl->wsdl_desc), env);
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
- }
-
- wsdl_desc_impl->wsdl_desc.ops->free = axis2_wsdl_desc_free;
+ }
+
+ wsdl_desc_impl->wsdl_desc.ops->free = axis2_wsdl_desc_free;
wsdl_desc_impl->wsdl_desc.ops->get_bindings = axis2_wsdl_desc_get_bindings;
wsdl_desc_impl->wsdl_desc.ops->set_bindings = axis2_wsdl_desc_set_bindings;
wsdl_desc_impl->wsdl_desc.ops->add_binding = axis2_wsdl_desc_add_binding;
@@ -445,7 +445,7 @@
wsdl_desc_impl->wsdl_desc.ops->set_includes = axis2_wsdl_desc_set_includes;
wsdl_desc_impl->wsdl_desc.ops->add_include = axis2_wsdl_desc_add_include;
- return &(wsdl_desc_impl->wsdl_desc);
+ return &(wsdl_desc_impl->wsdl_desc);
}
/*************************Function implementations*****************************/
@@ -460,7 +460,7 @@
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
wsdl_desc_impl = AXIS2_INTF_TO_IMPL(wsdl_desc);
- if(wsdl_desc->ops)
+ if(wsdl_desc->ops)
{
AXIS2_FREE(env->allocator, wsdl_desc->ops);
wsdl_desc->ops = NULL;
@@ -476,7 +476,7 @@
AXIS2_FREE(env->allocator, wsdl_desc_impl);
wsdl_desc_impl = NULL;
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
/**
Modified: webservices/axis2/trunk/c/modules/wsdl/wsdl_endpoint.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/wsdl/wsdl_endpoint.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/wsdl_endpoint.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/wsdl_endpoint.c Sat Jun 3 20:09:08 2006
@@ -18,11 +18,11 @@
/**
* @brief Wsdl endpoint struct impl
- * Wsdl endpoints
+ * Wsdl endpoints
*/
typedef struct axis2_wsdl_endpoint_impl
{
- axis2_wsdl_endpoint_t wsdl_endpoint;
+ axis2_wsdl_endpoint_t wsdl_endpoint;
/**
* Field name
@@ -32,18 +32,18 @@
/**
* Field binding
*/
- axis2_wsdl_binding_t *wsdl_binding;
+ axis2_wsdl_binding_t *wsdl_binding;
} axis2_wsdl_endpoint_impl_t;
#define AXIS2_INTF_TO_IMPL(wsdl_endpoint) \
- ((axis2_wsdl_endpoint_impl_t *)wsdl_endpoint)
+ ((axis2_wsdl_endpoint_impl_t *)wsdl_endpoint)
/************************* Function prototypes ********************************/
axis2_status_t AXIS2_CALL
- axis2_wsdl_endpoint_free (axis2_wsdl_endpoint_t *wsdl_endpoint,
- const axis2_env_t *env);
+ axis2_wsdl_endpoint_free (axis2_wsdl_endpoint_t *wsdl_endpoint,
+ const axis2_env_t *env);
axis2_qname_t * AXIS2_CALL
axis2_wsdl_endpoint_get_name(axis2_wsdl_endpoint_t *wsdl_endpoint,
@@ -70,11 +70,11 @@
{
axis2_wsdl_endpoint_impl_t *wsdl_endpoint_impl = NULL;
- AXIS2_ENV_CHECK(env, NULL);
-
- wsdl_endpoint_impl = (axis2_wsdl_endpoint_impl_t *) AXIS2_MALLOC(env->allocator,
- sizeof(axis2_wsdl_endpoint_impl_t));
-
+ AXIS2_ENV_CHECK(env, NULL);
+
+ wsdl_endpoint_impl = (axis2_wsdl_endpoint_impl_t *) AXIS2_MALLOC(env->allocator,
+ sizeof(axis2_wsdl_endpoint_impl_t));
+
if(NULL == wsdl_endpoint_impl)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
@@ -83,7 +83,7 @@
wsdl_endpoint_impl->qname = NULL;
wsdl_endpoint_impl->wsdl_binding = NULL;
- wsdl_endpoint_impl->wsdl_endpoint.wsdl_component = NULL;
+ wsdl_endpoint_impl->wsdl_endpoint.wsdl_component = NULL;
wsdl_endpoint_impl->wsdl_endpoint.ops = NULL;
wsdl_endpoint_impl->wsdl_endpoint.wsdl_component = axis2_wsdl_component_create(env);
@@ -94,26 +94,26 @@
return NULL;
}
- wsdl_endpoint_impl->wsdl_endpoint.ops =
- AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_endpoint_ops_t));
- if(NULL == wsdl_endpoint_impl->wsdl_endpoint.ops)
+ wsdl_endpoint_impl->wsdl_endpoint.ops =
+ AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_endpoint_ops_t));
+ if(NULL == wsdl_endpoint_impl->wsdl_endpoint.ops)
{
axis2_wsdl_endpoint_free(&(wsdl_endpoint_impl->wsdl_endpoint), env);
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
- wsdl_endpoint_impl->wsdl_endpoint.ops->free = axis2_wsdl_endpoint_free;
- wsdl_endpoint_impl->wsdl_endpoint.ops->get_name =
+ wsdl_endpoint_impl->wsdl_endpoint.ops->free = axis2_wsdl_endpoint_free;
+ wsdl_endpoint_impl->wsdl_endpoint.ops->get_name =
axis2_wsdl_endpoint_get_name;
wsdl_endpoint_impl->wsdl_endpoint.ops->set_name =
axis2_wsdl_endpoint_set_name;
- wsdl_endpoint_impl->wsdl_endpoint.ops->get_binding =
+ wsdl_endpoint_impl->wsdl_endpoint.ops->get_binding =
axis2_wsdl_endpoint_get_binding;
wsdl_endpoint_impl->wsdl_endpoint.ops->set_binding =
axis2_wsdl_endpoint_set_binding;
-
- return &(wsdl_endpoint_impl->wsdl_endpoint);
+
+ return &(wsdl_endpoint_impl->wsdl_endpoint);
}
/***************************Function implementation****************************/
@@ -128,7 +128,7 @@
wsdl_endpoint_impl = AXIS2_INTF_TO_IMPL(wsdl_endpoint);
- if(NULL != wsdl_endpoint->ops)
+ if(NULL != wsdl_endpoint->ops)
{
AXIS2_FREE(env->allocator, wsdl_endpoint->ops);
wsdl_endpoint->ops = NULL;
@@ -156,7 +156,7 @@
AXIS2_FREE(env->allocator, wsdl_endpoint_impl);
wsdl_endpoint_impl = NULL;
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
/**
Modified: webservices/axis2/trunk/c/modules/wsdl/wsdl_ext_soap_address.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/wsdl/wsdl_ext_soap_address.c?rev=411506&r1=411505&r2=411506&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/wsdl_ext_soap_address.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/wsdl_ext_soap_address.c Sat Jun 3 20:09:08 2006
@@ -19,23 +19,23 @@
/**
* @brief Wsdl Extension Soap Address struct impl
- * Wsdl Extention Soap Address
+ * Wsdl Extention Soap Address
*/
typedef struct axis2_wsdl_ext_soap_address_impl
{
- axis2_wsdl_ext_soap_address_t ext_soap_address;
+ axis2_wsdl_ext_soap_address_t ext_soap_address;
axis2_char_t *location_uri;
} axis2_wsdl_ext_soap_address_impl_t;
#define AXIS2_INTF_TO_IMPL(ext_soap_address) \
- ((axis2_wsdl_ext_soap_address_impl_t *)ext_soap_address)
+ ((axis2_wsdl_ext_soap_address_impl_t *)ext_soap_address)
/************************* Function prototypes ********************************/
axis2_status_t AXIS2_CALL
- axis2_wsdl_ext_soap_address_free (axis2_wsdl_ext_soap_address_t *ext_soap_address,
- const axis2_env_t *env);
+ axis2_wsdl_ext_soap_address_free (axis2_wsdl_ext_soap_address_t *ext_soap_address,
+ const axis2_env_t *env);
axis2_char_t *AXIS2_CALL
axis2_wsdl_ext_soap_address_get_location_uri(axis2_wsdl_ext_soap_address_t *ext_soap_address,
@@ -54,13 +54,13 @@
{
axis2_wsdl_ext_soap_address_impl_t *ext_soap_address_impl = NULL;
- AXIS2_ENV_CHECK(env, NULL);
-
- ext_soap_address_impl = (axis2_wsdl_ext_soap_address_impl_t *) AXIS2_MALLOC(env->allocator,
- sizeof(axis2_wsdl_ext_soap_address_impl_t));
-
-
- if(NULL == ext_soap_address_impl)
+ AXIS2_ENV_CHECK(env, NULL);
+
+ ext_soap_address_impl = (axis2_wsdl_ext_soap_address_impl_t *) AXIS2_MALLOC(env->allocator,
+ sizeof(axis2_wsdl_ext_soap_address_impl_t));
+
+
+ if(NULL == ext_soap_address_impl)
{
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
@@ -69,7 +69,7 @@
ext_soap_address_impl->location_uri = NULL;
ext_soap_address_impl->ext_soap_address.ops = NULL;
ext_soap_address_impl->ext_soap_address.ext_element = NULL;
-
+
ext_soap_address_impl->ext_soap_address.ext_element =
axis2_wsdl_extensible_element_create(env);
@@ -80,12 +80,12 @@
return NULL;
}
- ext_soap_address_impl->ext_soap_address.ops =
- AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_ext_soap_address_ops_t));
- if(NULL == ext_soap_address_impl->ext_soap_address.ops)
+ ext_soap_address_impl->ext_soap_address.ops =
+ AXIS2_MALLOC (env->allocator, sizeof(axis2_wsdl_ext_soap_address_ops_t));
+ if(NULL == ext_soap_address_impl->ext_soap_address.ops)
{
axis2_wsdl_ext_soap_address_free(&(ext_soap_address_impl->ext_soap_address), env);
- AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
if(!qtype)
@@ -96,13 +96,13 @@
AXIS2_WSDL_EXTENSIBLE_ELEMENT_SET_TYPE(
(&(ext_soap_address_impl->ext_soap_address))->ext_element, env, qtype);
- ext_soap_address_impl->ext_soap_address.ops->free = axis2_wsdl_ext_soap_address_free;
- ext_soap_address_impl->ext_soap_address.ops->get_location_uri =
+ ext_soap_address_impl->ext_soap_address.ops->free = axis2_wsdl_ext_soap_address_free;
+ ext_soap_address_impl->ext_soap_address.ops->get_location_uri =
axis2_wsdl_ext_soap_address_get_location_uri;
ext_soap_address_impl->ext_soap_address.ops->set_location_uri =
axis2_wsdl_ext_soap_address_set_location_uri;
-
- return &(ext_soap_address_impl->ext_soap_address);
+
+ return &(ext_soap_address_impl->ext_soap_address);
}
/***************************Function implementation****************************/
@@ -117,7 +117,7 @@
ext_soap_address_impl = AXIS2_INTF_TO_IMPL(ext_soap_address);
- if(NULL != ext_soap_address->ops)
+ if(NULL != ext_soap_address->ops)
AXIS2_FREE(env->allocator, ext_soap_address->ops);
if(NULL != ext_soap_address_impl->location_uri)
@@ -129,7 +129,7 @@
AXIS2_FREE(env->allocator, ext_soap_address_impl);
ext_soap_address_impl = NULL;
- return AXIS2_SUCCESS;
+ return AXIS2_SUCCESS;
}
axis2_char_t *AXIS2_CALL
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org