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 da...@apache.org on 2007/04/19 06:16:58 UTC
svn commit: r530257 - in /webservices/axis2/trunk/c:
src/core/phaseresolver/phase_resolver.c util/include/axutil_error.h
Author: damitha
Date: Wed Apr 18 21:16:57 2007
New Revision: 530257
URL: http://svn.apache.org/viewvc?view=rev&rev=530257
Log:
1 In phase_resolver.c's axis2_phase_resolver_engage_module_to_svc function
I can see a new change has added that if the module is already engaged it returns
AXIS2_FAILURE. But when I run sandesha2 samples it always fails because of this.
If I don't engage module from my client then also it fails. So temporarily I changed
it to return AXIS2_SUCCESS even if module is already engaged.
2 the error model in sandesha2c was to overriede the fuctions of axis2_error. But since the
ops structure was removed from axis2_error now this is impossible. As a solution to this
I moved the
const axis2_char_t* axutil_error_messages[AXIS2_ERROR_LAST + 10000];
from error.c t axutil_error.h with the change of increasing the size by 10000.
The idea is to reserve this additional space for error messages in axis2c modules.
For example in sandesha2c module i use the area AXIS2_ERROR_LAST + 1000 to
AXIS2_ERROR_LAST + 2000 for sandesha2c error messages.
Modified:
webservices/axis2/trunk/c/src/core/phaseresolver/phase_resolver.c
webservices/axis2/trunk/c/util/include/axutil_error.h
Modified: webservices/axis2/trunk/c/src/core/phaseresolver/phase_resolver.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/phaseresolver/phase_resolver.c?view=diff&rev=530257&r1=530256&r2=530257
==============================================================================
--- webservices/axis2/trunk/c/src/core/phaseresolver/phase_resolver.c (original)
+++ webservices/axis2/trunk/c/src/core/phaseresolver/phase_resolver.c Wed Apr 18 21:16:57 2007
@@ -1295,7 +1295,7 @@
module_d_qname_l))
{
engaged = AXIS2_TRUE;
- status = AXIS2_FAILURE;
+ status = AXIS2_SUCCESS;
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
"Module %s already engaged.",
axutil_qname_get_localpart(module_d_qname, env));
Modified: webservices/axis2/trunk/c/util/include/axutil_error.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axutil_error.h?view=diff&rev=530257&r1=530256&r2=530257
==============================================================================
--- webservices/axis2/trunk/c/util/include/axutil_error.h (original)
+++ webservices/axis2/trunk/c/util/include/axutil_error.h Wed Apr 18 21:16:57 2007
@@ -557,6 +557,8 @@
*/
AXIS2_ERROR_LAST
};
+ /* array to hold error messages */
+ const axis2_char_t* axutil_error_messages[AXIS2_ERROR_LAST + 10000];
/**
* \brief Array to hold error messages
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org