Author: damitha
Date: Thu Jun 15 01:30:21 2006
New Revision: 414505
URL: http://svn.apache.org/viewvc?rev=414505&view=rev
Log:
More bug fixes
Modified:
webservices/axis2/trunk/c/woden/src/builder/reader.c
webservices/axis2/trunk/c/woden/src/wsdl20/desc.c
webservices/axis2/trunk/c/woden/src/wsdl20/documentation.c
Modified: webservices/axis2/trunk/c/woden/src/builder/reader.c
URL:
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/builder/reader.c?rev=414505&r1=414504&r2=414505&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/builder/reader.c (original)
+++ webservices/axis2/trunk/c/woden/src/builder/reader.c Thu Jun 15 01:30:21
2006
@@ -688,6 +688,8 @@
axis2_hash_this (index, NULL, NULL, &v);
attr = (axiom_attribute_t *) v;
namespc = AXIOM_ATTRIBUTE_GET_NAMESPACE(attr, env);
+ if(!namespc)
+ continue;
namespc_uri = AXIOM_NAMESPACE_GET_URI(namespc, env);
local_part = AXIOM_ATTRIBUTE_GET_LOCALNAME(attr, env);
value = AXIOM_ATTRIBUTE_GET_VALUE(attr, env);
@@ -3627,8 +3629,11 @@
axis2_hash_this (index, NULL, NULL, &om_attr);
localname = AXIOM_ATTRIBUTE_GET_LOCALNAME((axiom_attribute_t *)
om_attr, env);
namespc = AXIOM_ATTRIBUTE_GET_NAMESPACE((axiom_attribute_t *) om_attr,
env);
- namespc_uri_str = AXIOM_NAMESPACE_GET_URI(namespc, env);
- prefix = AXIOM_NAMESPACE_GET_PREFIX(namespc, env);
+ if(namespc)
+ {
+ namespc_uri_str = AXIOM_NAMESPACE_GET_URI(namespc, env);
+ prefix = AXIOM_NAMESPACE_GET_PREFIX(namespc, env);
+ }
if(!prefix) prefix = "";
attr_type = axis2_qname_create(env, localname, namespc_uri_str,
prefix);
if(NULL != namespc_uri_str && 0 != AXIS2_STRCMP(namespc_uri_str,
Modified: webservices/axis2/trunk/c/woden/src/wsdl20/desc.c
URL:
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/desc.c?rev=414505&r1=414504&r2=414505&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/desc.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/desc.c Thu Jun 15 01:30:21 2006
@@ -272,74 +272,92 @@
void *AXIS2_CALL
woden_desc_create_documentation_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_import_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_include_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_types_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_interface_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_interface_fault_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_interface_op_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_interface_fault_ref_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_interface_msg_ref_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_binding_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_binding_fault_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_binding_op_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_binding_fault_ref_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_binding_msg_ref_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_svc_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_endpoint_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_feature_element(
+ void *desc,
const axis2_env_t *env);
void *AXIS2_CALL
woden_desc_create_property_element(
+ void *desc,
const axis2_env_t *env);
axis2_status_t AXIS2_CALL
@@ -1663,6 +1681,7 @@
void *AXIS2_CALL
woden_desc_create_documentation_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_documentation_create(env);
@@ -1670,6 +1689,7 @@
void *AXIS2_CALL
woden_desc_create_import_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_import_create(env);
@@ -1677,6 +1697,7 @@
void *AXIS2_CALL
woden_desc_create_include_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_include_create(env);
@@ -1684,6 +1705,7 @@
void *AXIS2_CALL
woden_desc_create_types_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_types_create(env);
@@ -1691,6 +1713,7 @@
void *AXIS2_CALL
woden_desc_create_interface_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_interface_create(env);
@@ -1698,6 +1721,7 @@
void *AXIS2_CALL
woden_desc_create_interface_fault_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_interface_fault_create(env);
@@ -1705,6 +1729,7 @@
void *AXIS2_CALL
woden_desc_create_interface_op_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_interface_op_create(env);
@@ -1712,6 +1737,7 @@
void *AXIS2_CALL
woden_desc_create_interface_fault_ref_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_interface_fault_ref_create(env);
@@ -1719,6 +1745,7 @@
void *AXIS2_CALL
woden_desc_create_interface_msg_ref_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_interface_msg_ref_create(env);
@@ -1726,6 +1753,7 @@
void *AXIS2_CALL
woden_desc_create_binding_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_binding_create(env);
@@ -1733,6 +1761,7 @@
void *AXIS2_CALL
woden_desc_create_binding_fault_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_binding_fault_create(env);
@@ -1740,6 +1769,7 @@
void *AXIS2_CALL
woden_desc_create_binding_op_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_binding_op_create(env);
@@ -1747,6 +1777,7 @@
void *AXIS2_CALL
woden_desc_create_binding_fault_ref_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_binding_fault_ref_create(env);
@@ -1754,6 +1785,7 @@
void *AXIS2_CALL
woden_desc_create_binding_msg_ref_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_binding_msg_ref_create(env);
@@ -1761,6 +1793,7 @@
void *AXIS2_CALL
woden_desc_create_svc_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_svc_create(env);
@@ -1768,6 +1801,7 @@
void *AXIS2_CALL
woden_desc_create_endpoint_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_endpoint_create(env);
@@ -1775,6 +1809,7 @@
void *AXIS2_CALL
woden_desc_create_feature_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_feature_create(env);
@@ -1782,6 +1817,7 @@
void *AXIS2_CALL
woden_desc_create_property_element(
+ void *desc,
const axis2_env_t *env)
{
return woden_property_create(env);
Modified: webservices/axis2/trunk/c/woden/src/wsdl20/documentation.c
URL:
http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/documentation.c?rev=414505&r1=414504&r2=414505&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/documentation.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/documentation.c Thu Jun 15
01:30:21 2006
@@ -163,13 +163,14 @@
/************************End of Woden C Internal
Methods***********************/
static woden_documentation_t *
-create(const axis2_env_t *env)
+create(
+ const axis2_env_t *env)
{
woden_documentation_impl_t *documentation_impl = NULL;
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
- documentation_impl = AXIS2_MALLOC(env->allocator,
- sizeof(woden_documentation_impl_t));
+ AXIS2_ENV_CHECK(env, NULL);
+ documentation_impl = AXIS2_MALLOC(env->allocator, sizeof(
+ woden_documentation_impl_t));
documentation_impl->wsdl_element = NULL;
documentation_impl->super = NULL;
@@ -213,7 +214,6 @@
{
woden_documentation_impl_t *documentation_impl = NULL;
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
documentation_impl = (woden_documentation_impl_t *) create(env);
documentation_impl->wsdl_element = woden_wsdl_element_create(env);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]