You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/01/31 14:14:33 UTC
svn commit: r373813 - in /webservices/axis2/trunk/c:
modules/core/clientapi/mep_client.c
modules/core/transport/http/http_transport_utils.c
test/client/echo/echo_client.c
Author: samisa
Date: Tue Jan 31 05:14:19 2006
New Revision: 373813
URL: http://svn.apache.org/viewcvs?rev=373813&view=rev
Log:
Some more fixes to get the Stub working
Modified:
webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c
webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
webservices/axis2/trunk/c/test/client/echo/echo_client.c
Modified: webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c?rev=373813&r1=373812&r2=373813&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c Tue Jan 31 05:14:19 2006
@@ -503,6 +503,7 @@
axis2_conf_ctx_t *conf_ctx = NULL;
axis2_op_t *op = NULL;
axis2_soap_envelope_t *response_envelope = NULL;
+ axis2_char_t *soap_ns_uri = NULL;
AXIS2_FUNC_PARAM_CHECK(msg_ctx, env, NULL);
@@ -539,7 +540,10 @@
AXIS2_MSG_CTX_SET_DOING_REST(response, env, AXIS2_MSG_CTX_GET_DOING_REST(msg_ctx, env));
/* TODO response_envelope = TransportUtils.createSOAPMessage(response, msg_ctx.getEnvelope().getNamespace().getName());*/
-
+ soap_ns_uri = AXIS2_MSG_CTX_GET_IS_SOAP_11(msg_ctx, env) ?
+ AXIS2_SOAP11_SOAP_ENVELOPE_NAMESPACE_URI:AXIS2_SOAP12_SOAP_ENVELOPE_NAMESPACE_URI;
+ response_envelope = axis2_http_transport_utils_create_soap_msg(env,
+ msg_ctx, soap_ns_uri);
if (response_envelope)
{
AXIS2_MSG_CTX_SET_SOAP_ENVELOPE(response, env, response_envelope);
Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c?rev=373813&r1=373812&r2=373813&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c Tue Jan 31 05:14:19 2006
@@ -824,7 +824,7 @@
xml_reader = NULL;
return NULL;
}
- soap_builder = soap_builder = axis2_soap_builder_create(env, om_builder,
+ soap_builder = axis2_soap_builder_create(env, om_builder,
soap_ns_uri);
soap_envelope = AXIS2_SOAP_BUILDER_GET_SOAP_ENVELOPE(soap_builder, env);
/* TODO have to free the buider, xml reader and om builder */
Modified: webservices/axis2/trunk/c/test/client/echo/echo_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/client/echo/echo_client.c?rev=373813&r1=373812&r2=373813&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/client/echo/echo_client.c (original)
+++ webservices/axis2/trunk/c/test/client/echo/echo_client.c Tue Jan 31 05:14:19 2006
@@ -42,6 +42,7 @@
log = axis2_log_create(allocator, NULL);
env = axis2_env_create_with_error_log(allocator, error, log);
env->log->level = AXIS2_LOG_LEVEL_INFO;
+ axis2_error_init();
client_home = AXIS2_GETENV("AXIS2C_HOME");
@@ -60,6 +61,9 @@
}
else
{
+ AXIS2_LOG_ERROR(env->log, LOG_SI, "Server start failed: Error code:"
+ " %d :: %s", env->error->error_number,
+ AXIS2_ERROR_GET_MESSAGE(env->error));
printf("echo stub invoke failed!\n");
}