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 di...@apache.org on 2007/02/14 11:14:09 UTC
svn commit: r507465 - in
/webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http: ./
receiver/ server/simple_axis2_server/
Author: dinesh
Date: Wed Feb 14 02:14:08 2007
New Revision: 507465
URL: http://svn.apache.org/viewvc?view=rev&rev=507465
Log:
axis2c-468:transport refactoring
Added:
webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/http_server.c
webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/http_worker.c
Removed:
webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/server/simple_axis2_server/http_server.c
webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/server/simple_axis2_server/http_worker.c
Modified:
webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/Makefile.am
webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/Makefile.am
webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/server/simple_axis2_server/Makefile.am
Modified: webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/Makefile.am?view=diff&rev=507465&r1=507464&r2=507465
==============================================================================
--- webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/Makefile.am (original)
+++ webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/Makefile.am Wed Feb 14 02:14:08 2007
@@ -4,6 +4,11 @@
libaxis2_http_la_SOURCES = http_transport_utils.c\
http_chunked_stream.c
+libaxis2_http_la_LIBADD=$(top_builddir)/util/src/libaxis2_util.la \
+ $(top_builddir)/axiom/src/parser/${WRAPPER_DIR}/libaxis2_parser.la\
+ $(top_builddir)/axiom/src/om/libaxis2_axiom.la
+
+
INCLUDES = -I$(top_builddir)/include \
-I$(top_builddir)/modules/core/engine \
-I$(top_builddir)/util/include \
Modified: webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/Makefile.am?view=diff&rev=507465&r1=507464&r2=507465
==============================================================================
--- webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/Makefile.am (original)
+++ webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/Makefile.am Wed Feb 14 02:14:08 2007
@@ -2,9 +2,11 @@
libaxis2_http_receiver_la_LIBADD= $(top_builddir)/util/src/libaxis2_util.la
-libaxis2_http_receiver_la_SOURCES = simple_http_svr_conn.c\
- http_response_writer.c\
-http_request_line.c\
+libaxis2_http_receiver_la_SOURCES = http_response_writer.c\
+ http_request_line.c\
+ simple_http_svr_conn.c\
+ http_server.c\
+ http_worker.c\
http_out_transport_info.c\
http_svr_thread.c
Added: webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/http_server.c
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/http_server.c?view=auto&rev=507465
==============================================================================
--- webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/http_server.c (added)
+++ webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/http_server.c Wed Feb 14 02:14:08 2007
@@ -0,0 +1,341 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <axis2_http_server.h>
+
+#include <axis2_http_transport.h>
+#include <axis2_http_svr_thread.h>
+#include <axis2_http_server.h>
+#include <axis2_transport_in_desc.h>
+#include <axis2_param_container.h>
+#include <axis2_url.h>
+#include <axis2_conf_init.h>
+
+/**
+ * @brief HTTP Client struct impl
+ * Axis2 HTTP Client impl
+ */
+
+typedef struct axis2_http_server_impl
+{
+ axis2_transport_receiver_t http_server;
+ axis2_http_svr_thread_t *svr_thread;
+ int port;
+ axis2_conf_ctx_t* conf_ctx;
+ axis2_conf_ctx_t* conf_ctx_private;
+}
+axis2_http_server_impl_t;
+
+#define AXIS2_INTF_TO_IMPL(http_server) \
+ ((axis2_http_server_impl_t *)(http_server))
+
+/***************************** Function headers *******************************/
+
+axis2_status_t AXIS2_CALL
+axis2_http_server_init(
+ axis2_transport_receiver_t *server,
+ const axis2_env_t *env,
+ axis2_conf_ctx_t *conf_ctx,
+ axis2_transport_in_desc_t *in_desc);
+
+axis2_status_t AXIS2_CALL
+axis2_http_server_start(
+ axis2_transport_receiver_t *server,
+ const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL
+axis2_http_server_stop(
+ axis2_transport_receiver_t *server,
+ const axis2_env_t *env);
+
+axis2_conf_ctx_t *AXIS2_CALL
+axis2_http_server_get_conf_ctx(
+ axis2_transport_receiver_t *server,
+ const axis2_env_t *env);
+
+axis2_endpoint_ref_t *AXIS2_CALL
+axis2_http_server_get_reply_to_epr(
+ axis2_transport_receiver_t *server,
+ const axis2_env_t *env,
+ const axis2_char_t *svc_name);
+
+axis2_bool_t AXIS2_CALL
+axis2_http_server_is_running(
+ axis2_transport_receiver_t *server,
+ const axis2_env_t *env);
+
+axis2_status_t AXIS2_CALL
+axis2_http_server_free(
+ axis2_transport_receiver_t *server,
+ const axis2_env_t *env);
+
+/***************************** End of function headers ************************/
+
+AXIS2_EXTERN axis2_transport_receiver_t *AXIS2_CALL
+axis2_http_server_create(
+ const axis2_env_t *env,
+ const axis2_char_t *repo,
+ const int port)
+{
+ axis2_http_server_impl_t *server_impl = NULL;
+ AXIS2_ENV_CHECK(env, NULL);
+
+ server_impl = (axis2_http_server_impl_t *)AXIS2_MALLOC
+ (env->allocator, sizeof(axis2_http_server_impl_t));
+
+ if (NULL == server_impl)
+ {
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
+
+ server_impl->svr_thread = NULL;
+ server_impl->conf_ctx = NULL;
+ server_impl->conf_ctx_private = NULL;
+ server_impl->port = port;
+
+ server_impl->http_server.ops = AXIS2_MALLOC(env->allocator,
+ sizeof(axis2_transport_receiver_ops_t));
+ if (NULL == server_impl->http_server.ops)
+ {
+ axis2_http_server_free((axis2_transport_receiver_t *) server_impl, env);
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
+ if (repo)
+ {
+ /**
+ * We first create a private conf ctx which is owned by this server
+ * we only free this private conf context. We should never free the
+ * server_impl->conf_ctx because it may own to any other object which
+ * may lead to double free
+ */
+ server_impl->conf_ctx_private = build_conf_ctx(env, repo);
+ if (NULL == server_impl->conf_ctx_private)
+ {
+ axis2_http_server_free((axis2_transport_receiver_t *) server_impl, env);
+ return NULL;
+ }
+ server_impl->conf_ctx = server_impl->conf_ctx_private;
+ }
+ server_impl->http_server.ops->init = axis2_http_server_init;
+ server_impl->http_server.ops->start = axis2_http_server_start;
+ server_impl->http_server.ops->stop = axis2_http_server_stop;
+ server_impl->http_server.ops->get_reply_to_epr =
+ axis2_http_server_get_reply_to_epr;
+ server_impl->http_server.ops->get_conf_ctx = axis2_http_server_get_conf_ctx;
+ server_impl->http_server.ops->is_running = axis2_http_server_is_running;
+ server_impl->http_server.ops->free = axis2_http_server_free;
+
+ return &(server_impl->http_server);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_http_server_free(
+ axis2_transport_receiver_t *server,
+ const axis2_env_t *env)
+{
+ axis2_http_server_impl_t *server_impl = NULL;
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ server_impl = AXIS2_INTF_TO_IMPL(server);
+ if (server_impl->svr_thread)
+ {
+ AXIS2_HTTP_SVR_THREAD_DESTROY(server_impl->svr_thread, env);
+ AXIS2_HTTP_SVR_THREAD_FREE(server_impl->svr_thread, env);
+ server_impl->svr_thread = NULL;
+ }
+
+ if (server_impl->conf_ctx_private)
+ {
+ AXIS2_CONF_CTX_FREE(server_impl->conf_ctx_private, env);
+ server_impl->conf_ctx_private = NULL;
+ }
+ /**
+ * Do not free this. It may own to some other object
+ */
+ server_impl->conf_ctx = NULL;
+
+ if (server->ops)
+ {
+ AXIS2_FREE(env->allocator, server->ops);
+ }
+ AXIS2_FREE(env->allocator, server_impl);
+ return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_http_server_init(
+ axis2_transport_receiver_t *server,
+ const axis2_env_t *env,
+ axis2_conf_ctx_t *conf_ctx,
+ axis2_transport_in_desc_t *in_desc)
+{
+ axis2_http_server_impl_t *server_impl = NULL;
+ axis2_char_t *port_str = NULL;
+ axis2_param_t *param = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ server_impl = AXIS2_INTF_TO_IMPL(server);
+
+ server_impl->conf_ctx = conf_ctx;
+ param = (axis2_param_t *)AXIS2_PARAM_CONTAINER_GET_PARAM(
+ in_desc->param_container, env, "port");
+ if (param)
+ {
+ port_str = AXIS2_PARAM_GET_VALUE(param, env);
+ }
+ if (port_str)
+ {
+ server_impl->port = atoi(port_str);
+ }
+ return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_http_server_start(
+ axis2_transport_receiver_t *server,
+ const axis2_env_t *env)
+{
+
+ axis2_http_server_impl_t *server_impl = NULL;
+ axis2_http_worker_t *worker = NULL;
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+ server_impl = AXIS2_INTF_TO_IMPL(server);
+ server_impl->svr_thread = axis2_http_svr_thread_create(env,
+ server_impl->port);
+ if (NULL == server_impl->svr_thread)
+ {
+ return AXIS2_FAILURE;
+ }
+ worker = axis2_http_worker_create(env, server_impl->conf_ctx);
+ AXIS2_HTTP_WORKER_SET_SVR_PORT(worker, env, server_impl->port);
+ if (NULL == worker)
+ {
+ AXIS2_HTTP_SVR_THREAD_FREE(server_impl->svr_thread, env);
+ return AXIS2_FAILURE;
+ }
+ AXIS2_LOG_INFO(env->log, "Starting HTTP server thread");
+ AXIS2_HTTP_SVR_THREAD_SET_WORKER(server_impl->svr_thread, env, worker);
+ AXIS2_HTTP_SVR_THREAD_RUN(server_impl->svr_thread, env);
+ return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_http_server_stop(
+ axis2_transport_receiver_t *server,
+ const axis2_env_t *env)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+ AXIS2_LOG_INFO(env->log, "Terminating HTTP server thread");
+ if (AXIS2_INTF_TO_IMPL(server)->svr_thread)
+ {
+ AXIS2_HTTP_SVR_THREAD_DESTROY(AXIS2_INTF_TO_IMPL(server)->svr_thread,
+ env);
+ }
+ AXIS2_LOG_INFO(env->log, "Successfully terminated HTTP server"
+ " thread");
+ return AXIS2_SUCCESS;
+}
+
+axis2_conf_ctx_t *AXIS2_CALL
+axis2_http_server_get_conf_ctx(
+ axis2_transport_receiver_t *server,
+ const axis2_env_t *env)
+{
+ AXIS2_ENV_CHECK(env, NULL);
+ return AXIS2_INTF_TO_IMPL(server)->conf_ctx;
+}
+
+axis2_endpoint_ref_t *AXIS2_CALL
+axis2_http_server_get_reply_to_epr(
+ axis2_transport_receiver_t *server,
+ const axis2_env_t *env,
+ const axis2_char_t *svc_name)
+{
+ axis2_endpoint_ref_t *epr = NULL;
+ const axis2_char_t *host_address = NULL;
+ axis2_char_t *svc_path = NULL;
+ axis2_url_t *url = NULL;
+ AXIS2_ENV_CHECK(env, NULL);
+ AXIS2_PARAM_CHECK(env->error, svc_name, NULL);
+
+ host_address = "127.0.0.1"; /* TODO : get from axis2.xml */
+ svc_path = AXIS2_STRACAT("/axis2/services/", svc_name, env);
+ url = axis2_url_create(env, "http", host_address,
+ AXIS2_INTF_TO_IMPL(server)->port, svc_path);
+ AXIS2_FREE(env->allocator, svc_path);
+ if (NULL == url)
+ {
+ return NULL;
+ }
+ epr = axis2_endpoint_ref_create(env, AXIS2_URL_TO_EXTERNAL_FORM(url, env));
+ AXIS2_URL_FREE(url, env);
+ return epr;
+}
+
+axis2_bool_t AXIS2_CALL
+axis2_http_server_is_running(
+ axis2_transport_receiver_t *server,
+ const axis2_env_t *env)
+{
+ axis2_http_server_impl_t *server_impl = NULL;
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ server_impl = AXIS2_INTF_TO_IMPL(server);
+ if (NULL == server_impl->svr_thread)
+ {
+ return AXIS2_FALSE;
+ }
+ else
+ {
+ return AXIS2_HTTP_SVR_THREAD_IS_RUNNING(server_impl->svr_thread, env);
+ }
+ return AXIS2_FALSE;
+}
+
+/**
+ * Following block distinguish the exposed part of the dll.
+ */
+AXIS2_EXPORT int axis2_get_instance(
+ struct axis2_transport_receiver **inst,
+ const axis2_env_t *env)
+{
+ *inst = axis2_http_server_create(env, NULL, -1);
+ if (!(*inst))
+ {
+ printf("transport receiver load not success\n");
+ return AXIS2_FAILURE;
+ }
+
+ return AXIS2_SUCCESS;
+}
+
+AXIS2_EXPORT int axis2_remove_instance(
+ axis2_transport_receiver_t *inst,
+ const axis2_env_t *env)
+{
+ axis2_status_t status = AXIS2_FAILURE;
+ if (inst)
+ {
+ status = AXIS2_TRANSPORT_RECEIVER_FREE(inst, env);
+ }
+ return status;
+}
Added: webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/http_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/http_worker.c?view=auto&rev=507465
==============================================================================
--- webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/http_worker.c (added)
+++ webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/receiver/http_worker.c Wed Feb 14 02:14:08 2007
@@ -0,0 +1,632 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+#include <axis2_http_worker.h>
+#include <axis2_string.h>
+#include <axis2_http_transport.h>
+#include <axis2_conf.h>
+#include <axis2_string.h>
+#include <axis2_msg_ctx.h>
+#include <axis2_http_request_line.h>
+#include <axis2_http_out_transport_info.h>
+#include <axis2_http_transport_utils.h>
+#include <axis2_op_ctx.h>
+#include <axis2_engine.h>
+#include <axis2_uuid_gen.h>
+#include <axis2_url.h>
+#include <axis2_property.h>
+
+/**
+ * @brief HTTP Worker struct impl
+ * Axis2 HTTP Worker impl
+ */
+
+typedef struct axis2_http_worker_impl
+{
+ axis2_http_worker_t http_worker;
+ axis2_conf_ctx_t *conf_ctx;
+ int svr_port;
+}
+axis2_http_worker_impl_t;
+
+#define AXIS2_INTF_TO_IMPL(http_worker) ((axis2_http_worker_impl_t *)\
+ (http_worker))
+
+/***************************** Function headers *******************************/
+
+axis2_bool_t AXIS2_CALL
+axis2_http_worker_process_request(
+ axis2_http_worker_t *http_worker,
+ const axis2_env_t *env,
+ axis2_simple_http_svr_conn_t *svr_conn,
+ axis2_http_simple_request_t *simple_request);
+
+axis2_status_t AXIS2_CALL
+axis2_http_worker_set_response_headers(
+ axis2_http_worker_t *http_worker,
+ const axis2_env_t *env,
+ axis2_simple_http_svr_conn_t *svr_conn,
+ axis2_http_simple_request_t *simple_request,
+ axis2_http_simple_response_t *simple_response,
+ axis2_ssize_t content_length);
+
+axis2_status_t AXIS2_CALL
+axis2_http_worker_set_transport_out_config(
+ axis2_http_worker_t *http_worker,
+ const axis2_env_t *env,
+ axis2_conf_ctx_t *conf_ctx,
+ axis2_http_simple_response_t *simple_response);
+
+axis2_hash_t *AXIS2_CALL
+axis2_http_worker_get_headers(
+ axis2_http_worker_t *http_worker,
+ const axis2_env_t *env,
+ axis2_http_simple_request_t *request);
+
+axis2_status_t AXIS2_CALL
+axis2_http_worker_set_svr_port(
+ axis2_http_worker_t *worker,
+ const axis2_env_t *env,
+ int port);
+
+axis2_status_t AXIS2_CALL
+axis2_http_worker_free(
+ axis2_http_worker_t *http_worker,
+ const axis2_env_t *env);
+
+/***************************** End of function headers ************************/
+
+AXIS2_EXTERN axis2_http_worker_t *AXIS2_CALL
+axis2_http_worker_create(
+ const axis2_env_t *env,
+ axis2_conf_ctx_t *conf_ctx)
+{
+ axis2_http_worker_impl_t *http_worker_impl = NULL;
+ AXIS2_ENV_CHECK(env, NULL);
+ http_worker_impl = (axis2_http_worker_impl_t *)
+ AXIS2_MALLOC(env->allocator, sizeof(axis2_http_worker_impl_t));
+
+ if (NULL == http_worker_impl)
+ {
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
+ http_worker_impl->conf_ctx = conf_ctx;
+ http_worker_impl->svr_port = 9090; /* default - must set later*/
+
+ http_worker_impl->http_worker.ops = AXIS2_MALLOC(env->allocator,
+ sizeof(axis2_http_worker_ops_t));
+ if (NULL == http_worker_impl->http_worker.ops)
+ {
+ axis2_http_worker_free((axis2_http_worker_t *)http_worker_impl, env);
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
+
+ http_worker_impl->http_worker.ops->process_request =
+ axis2_http_worker_process_request;
+ http_worker_impl->http_worker.ops->set_svr_port =
+ axis2_http_worker_set_svr_port;
+ http_worker_impl->http_worker.ops->free = axis2_http_worker_free;
+
+ return &(http_worker_impl->http_worker);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_http_worker_free(
+ axis2_http_worker_t *http_worker,
+ const axis2_env_t *env)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+ AXIS2_INTF_TO_IMPL(http_worker)->conf_ctx = NULL;
+
+ if (http_worker->ops)
+ AXIS2_FREE(env->allocator, http_worker->ops);
+
+ AXIS2_FREE(env->allocator, AXIS2_INTF_TO_IMPL(http_worker));
+
+ return AXIS2_SUCCESS;
+}
+
+axis2_bool_t AXIS2_CALL
+axis2_http_worker_process_request(
+ axis2_http_worker_t *http_worker,
+ const axis2_env_t *env,
+ axis2_simple_http_svr_conn_t *svr_conn,
+ axis2_http_simple_request_t *simple_request)
+{
+ axis2_http_worker_impl_t *http_worker_impl = NULL;
+ axis2_conf_ctx_t *conf_ctx = NULL;
+ axis2_msg_ctx_t *msg_ctx = NULL;
+ axis2_stream_t *request_body = NULL;
+ axis2_stream_t *out_stream = axis2_stream_create_basic(env);
+ axis2_http_simple_response_t *response = NULL;
+ axis2_transport_out_desc_t *out_desc = NULL;
+ axis2_transport_in_desc_t *in_desc = NULL;
+ axis2_char_t *http_version = NULL;
+ axis2_char_t *soap_action = NULL;
+ axis2_string_t *soap_action_str = NULL;
+ axis2_bool_t processed = AXIS2_FALSE;
+ axis2_char_t *ctx_written = NULL;
+ axis2_status_t status = AXIS2_FAILURE;
+ int content_length = -1;
+ axis2_http_header_t *encoding_header = NULL;
+ axis2_char_t *encoding_header_value = NULL;
+ axis2_op_ctx_t *op_ctx = NULL;
+ axis2_char_t *svr_ip = NULL;
+ axis2_url_t *request_url = NULL;
+ axis2_http_out_transport_info_t *http_out_transport_info = NULL;
+ axis2_hash_t *headers = NULL;
+ axis2_property_t *property = NULL;
+ axis2_char_t *url_external_form = NULL;
+ axis2_char_t *svc_grp_uuid = NULL;
+ axis2_char_t *path = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, svr_conn, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, simple_request, AXIS2_FAILURE);
+
+ http_worker_impl = AXIS2_INTF_TO_IMPL(http_worker);
+ conf_ctx = http_worker_impl->conf_ctx;
+
+ if (NULL == conf_ctx)
+ {
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NULL_CONFIGURATION_CONTEXT,
+ AXIS2_FAILURE);
+ return AXIS2_FALSE;
+ }
+
+ content_length = AXIS2_HTTP_SIMPLE_REQUEST_GET_CONTENT_LENGTH(simple_request
+ , env);
+ http_version = AXIS2_HTTP_REQUEST_LINE_GET_HTTP_VERSION
+ (AXIS2_HTTP_SIMPLE_REQUEST_GET_REQUEST_LINE
+ (simple_request, env), env);
+ if (NULL == http_version)
+ {
+ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NULL_HTTP_VERSION,
+ AXIS2_FAILURE);
+ return AXIS2_FAILURE;
+ }
+ AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "Client HTTP version %s",
+ http_version);
+
+ response = axis2_http_simple_response_create_default(env);
+ encoding_header = AXIS2_HTTP_SIMPLE_REQUEST_GET_FIRST_HEADER(simple_request,
+ env, AXIS2_HTTP_HEADER_TRANSFER_ENCODING);
+ if (encoding_header)
+ {
+ encoding_header_value = AXIS2_HTTP_HEADER_GET_VALUE(encoding_header,
+ env);
+ }
+ if (content_length < 0 && (encoding_header_value && 0 != AXIS2_STRCMP
+ (encoding_header_value,
+ AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED)))
+ {
+ if (0 == AXIS2_STRCASECMP(AXIS2_HTTP_REQUEST_LINE_GET_METHOD(
+ AXIS2_HTTP_SIMPLE_REQUEST_GET_REQUEST_LINE(
+ simple_request, env), env), AXIS2_HTTP_HEADER_POST))
+ {
+ AXIS2_HTTP_SIMPLE_RESPONSE_SET_STATUS_LINE(response, env,
+ http_version, 411, "Length Required");
+ status = AXIS2_SIMPLE_HTTP_SVR_CONN_WRITE_RESPONSE(svr_conn, env,
+ response);
+ AXIS2_HTTP_SIMPLE_RESPONSE_FREE(response, env);
+ response = NULL;
+ return status;
+ }
+
+ }
+ request_body = AXIS2_HTTP_SIMPLE_REQUEST_GET_BODY(simple_request, env);
+
+ out_desc = AXIS2_CONF_GET_TRANSPORT_OUT(AXIS2_CONF_CTX_GET_CONF
+ (http_worker_impl->conf_ctx, env), env,
+ AXIS2_TRANSPORT_ENUM_HTTP);
+ in_desc = AXIS2_CONF_GET_TRANSPORT_IN(AXIS2_CONF_CTX_GET_CONF
+ (http_worker_impl->conf_ctx, env), env,
+ AXIS2_TRANSPORT_ENUM_HTTP);
+ msg_ctx = axis2_msg_ctx_create(env, conf_ctx, in_desc, out_desc);
+ AXIS2_MSG_CTX_SET_SERVER_SIDE(msg_ctx, env, AXIS2_TRUE);
+
+
+ if (0 == AXIS2_STRCASECMP(http_version, AXIS2_HTTP_HEADER_PROTOCOL_11))
+ {
+ axis2_http_worker_set_transport_out_config(http_worker, env, conf_ctx,
+ response);
+ }
+
+ svr_ip = AXIS2_SIMPLE_HTTP_SVR_CONN_GET_SVR_IP(svr_conn, env);
+
+ path = AXIS2_HTTP_REQUEST_LINE_GET_URI(
+ AXIS2_HTTP_SIMPLE_REQUEST_GET_REQUEST_LINE(
+ simple_request, env), env);
+
+ request_url = axis2_url_create(env, "http", svr_ip,
+ http_worker_impl->svr_port,
+ path);
+
+ url_external_form = AXIS2_URL_TO_EXTERNAL_FORM(request_url, env);
+
+ axis2_msg_ctx_set_transport_out_stream(msg_ctx, env, out_stream);
+
+ property = axis2_property_create(env);
+ AXIS2_PROPERTY_SET_SCOPE(property, env, AXIS2_SCOPE_REQUEST);
+ AXIS2_PROPERTY_SET_FREE_FUNC(property, env, axis2_hash_free_void_arg);
+ headers = axis2_http_worker_get_headers(http_worker, env, simple_request);
+ AXIS2_PROPERTY_SET_VALUE(property, env, headers);
+ AXIS2_MSG_CTX_SET_PROPERTY(msg_ctx, env, AXIS2_TRANSPORT_HEADERS, property,
+ AXIS2_FALSE);
+
+ svc_grp_uuid = axis2_uuid_gen(env);
+ if (svc_grp_uuid)
+ {
+ axis2_string_t *svc_grp_uuid_str = axis2_string_create_assume_ownership(env, &svc_grp_uuid);
+ AXIS2_MSG_CTX_SET_SVC_GRP_CTX_ID(msg_ctx, env, svc_grp_uuid_str);
+ axis2_string_free(svc_grp_uuid_str, env);
+ }
+
+ property = axis2_property_create(env);
+ AXIS2_PROPERTY_SET_SCOPE(property, env, AXIS2_SCOPE_REQUEST);
+ AXIS2_PROPERTY_SET_FREE_FUNC(property, env,
+ axis2_http_out_transport_info_free_void_arg);
+ http_out_transport_info = axis2_http_out_transport_info_create(env, response);
+ AXIS2_PROPERTY_SET_VALUE(property, env, http_out_transport_info);
+ AXIS2_MSG_CTX_SET_PROPERTY(msg_ctx, env, AXIS2_HTTP_OUT_TRANSPORT_INFO,
+ property, AXIS2_FALSE);
+
+ if (AXIS2_HTTP_SIMPLE_REQUEST_GET_FIRST_HEADER(simple_request, env,
+ AXIS2_HTTP_HEADER_SOAP_ACTION))
+ {
+ soap_action = AXIS2_HTTP_HEADER_GET_VALUE(
+ AXIS2_HTTP_SIMPLE_REQUEST_GET_FIRST_HEADER(
+ simple_request, env, AXIS2_HTTP_HEADER_SOAP_ACTION),
+ env);
+ soap_action_str = axis2_string_create(env, soap_action);
+ }
+ if (0 == AXIS2_STRCASECMP(AXIS2_HTTP_REQUEST_LINE_GET_METHOD(
+ AXIS2_HTTP_SIMPLE_REQUEST_GET_REQUEST_LINE(
+ simple_request, env), env), AXIS2_HTTP_HEADER_GET))
+ {
+ processed = axis2_http_transport_utils_process_http_get_request
+ (env, msg_ctx, request_body, out_stream,
+ AXIS2_HTTP_SIMPLE_REQUEST_GET_CONTENT_TYPE(
+ simple_request, env) , soap_action_str,
+ AXIS2_URL_TO_EXTERNAL_FORM(request_url, env),
+ conf_ctx,
+ axis2_http_transport_utils_get_request_params(env,
+ AXIS2_HTTP_REQUEST_LINE_GET_URI(
+ AXIS2_HTTP_SIMPLE_REQUEST_GET_REQUEST_LINE(
+ simple_request, env), env)));
+ if (AXIS2_FALSE == processed)
+ {
+ axis2_http_header_t *cont_len = NULL;
+ axis2_char_t *body_string = NULL;
+ AXIS2_HTTP_SIMPLE_RESPONSE_SET_STATUS_LINE(response, env,
+ http_version, AXIS2_HTTP_RESPONSE_OK_CODE_VAL, "OK");
+
+ body_string = axis2_http_transport_utils_get_services_html(env,
+ conf_ctx);
+ if (body_string)
+ {
+ axis2_char_t str_len[10];
+ AXIS2_HTTP_SIMPLE_RESPONSE_SET_BODY_STRING(response, env,
+ body_string);
+ sprintf(str_len, "%d", AXIS2_STRLEN(body_string));
+ cont_len = axis2_http_header_create(env,
+ AXIS2_HTTP_HEADER_CONTENT_LENGTH, str_len);
+ AXIS2_HTTP_SIMPLE_RESPONSE_SET_HEADER(response, env, cont_len);
+ }
+ axis2_http_worker_set_response_headers(http_worker, env, svr_conn,
+ simple_request, response, 0);
+ AXIS2_SIMPLE_HTTP_SVR_CONN_WRITE_RESPONSE(svr_conn, env, response);
+ AXIS2_HTTP_SIMPLE_RESPONSE_FREE(response, env);
+ return AXIS2_TRUE;
+ }
+ }
+ else if (0 == AXIS2_STRCASECMP(AXIS2_HTTP_REQUEST_LINE_GET_METHOD(
+ AXIS2_HTTP_SIMPLE_REQUEST_GET_REQUEST_LINE(
+ simple_request, env), env), AXIS2_HTTP_HEADER_POST))
+ {
+ status = axis2_http_transport_utils_process_http_post_request
+ (env, msg_ctx, request_body, out_stream,
+ AXIS2_HTTP_SIMPLE_REQUEST_GET_CONTENT_TYPE(
+ simple_request, env) , content_length, soap_action_str,
+ url_external_form);
+ if (status == AXIS2_FAILURE)
+ {
+ axis2_msg_ctx_t *fault_ctx = NULL;
+ axis2_engine_t *engine = axis2_engine_create(env, conf_ctx);
+ axis2_http_request_line_t *req_line = NULL;
+ axis2_http_status_line_t *tmp_stat_line = NULL;
+ axis2_char_t status_line_str[100];
+ if (NULL == engine)
+ {
+ return AXIS2_FALSE;
+ }
+ fault_ctx = AXIS2_ENGINE_CREATE_FAULT_MSG_CTX(engine, env, msg_ctx);
+ req_line = AXIS2_HTTP_SIMPLE_REQUEST_GET_REQUEST_LINE(simple_request
+ , env);
+ if (req_line)
+ {
+ sprintf(status_line_str, "%s 500 Internal Server Error\r\n",
+ AXIS2_HTTP_REQUEST_LINE_GET_HTTP_VERSION(req_line,
+ env));
+ }
+ else
+ {
+ sprintf(status_line_str, "HTTP/1.1 500 Internal Server Error\
+ \r\n");
+ }
+ tmp_stat_line = axis2_http_status_line_create(env,
+ status_line_str);
+ AXIS2_ENGINE_SEND_FAULT(engine, env, fault_ctx);
+ AXIS2_HTTP_SIMPLE_RESPONSE_SET_STATUS_LINE(response, env,
+ AXIS2_HTTP_STATUS_LINE_GET_HTTP_VERSION(tmp_stat_line, env),
+ AXIS2_HTTP_STATUS_LINE_GET_STATUS_CODE(tmp_stat_line, env) ,
+ AXIS2_HTTP_STATUS_LINE_GET_REASON_PHRASE(tmp_stat_line, env));
+ AXIS2_HTTP_SIMPLE_RESPONSE_SET_BODY_STREAM(response, env,
+ out_stream);
+ axis2_http_worker_set_response_headers(http_worker, env, svr_conn,
+ simple_request, response, AXIS2_STREAM_BASIC_GET_LEN(
+ out_stream, env));
+
+ status = AXIS2_SIMPLE_HTTP_SVR_CONN_WRITE_RESPONSE(svr_conn, env,
+ response);
+ return status;
+
+ }
+ }
+ op_ctx = AXIS2_MSG_CTX_GET_OP_CTX(msg_ctx, env);
+ if (op_ctx)
+ {
+ axis2_ctx_t *ctx = AXIS2_OP_CTX_GET_BASE(AXIS2_MSG_CTX_GET_OP_CTX(
+ msg_ctx, env), env);
+ if (ctx)
+ {
+ property = AXIS2_CTX_GET_PROPERTY(ctx, env,
+ AXIS2_RESPONSE_WRITTEN, AXIS2_FALSE);
+ if (property)
+ ctx_written = AXIS2_PROPERTY_GET_VALUE(property, env);
+ }
+ }
+ if (ctx_written && AXIS2_STRCASECMP(ctx_written, "TRUE") == 0)
+ {
+ AXIS2_HTTP_SIMPLE_RESPONSE_SET_STATUS_LINE(response, env, http_version,
+ AXIS2_HTTP_RESPONSE_OK_CODE_VAL, "OK");
+ AXIS2_HTTP_SIMPLE_RESPONSE_SET_BODY_STREAM(response, env, out_stream);
+ }
+ else
+ {
+ AXIS2_HTTP_SIMPLE_RESPONSE_SET_STATUS_LINE(response, env, http_version,
+ AXIS2_HTTP_RESPONSE_ACK_CODE_VAL, "Accepted");
+ }
+ axis2_http_worker_set_response_headers(http_worker, env, svr_conn,
+ simple_request, response, AXIS2_STREAM_BASIC_GET_LEN(
+ out_stream, env));
+
+ status = AXIS2_SIMPLE_HTTP_SVR_CONN_WRITE_RESPONSE(svr_conn, env, response);
+ AXIS2_FREE(env->allocator, url_external_form);
+ url_external_form = NULL;
+ /* this is freed in the following block of logic, taking it from
+ operation context that holds it
+ AXIS2_MSG_CTX_FREE(msg_ctx, env); */
+ /* Free message contextx */
+ if (op_ctx)
+ {
+ axis2_msg_ctx_t *out_msg_ctx = NULL, *in_msg_ctx = NULL;
+ axis2_msg_ctx_t **msg_ctx_map = NULL;
+
+ msg_ctx_map = AXIS2_OP_CTX_GET_MSG_CTX_MAP(op_ctx, env);
+
+ out_msg_ctx = msg_ctx_map[AXIS2_WSDL_MESSAGE_LABEL_OUT];
+ in_msg_ctx = msg_ctx_map[AXIS2_WSDL_MESSAGE_LABEL_IN];
+
+ if (out_msg_ctx)
+ {
+ AXIS2_MSG_CTX_FREE(out_msg_ctx, env);
+ out_msg_ctx = NULL;
+ msg_ctx_map[AXIS2_WSDL_MESSAGE_LABEL_OUT] = NULL;
+ }
+
+ if (in_msg_ctx)
+ {
+ AXIS2_MSG_CTX_FREE(in_msg_ctx, env);
+ in_msg_ctx = NULL;
+ msg_ctx_map[AXIS2_WSDL_MESSAGE_LABEL_IN] = NULL;
+ }
+
+ } /* Done freeing message contexts */
+
+ msg_ctx = NULL;
+ AXIS2_URL_FREE(request_url, env);
+ axis2_string_free(soap_action_str, env);
+ request_url = NULL;
+ return status;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_http_worker_set_response_headers(
+ axis2_http_worker_t *http_worker,
+ const axis2_env_t *env,
+ axis2_simple_http_svr_conn_t *svr_conn,
+ axis2_http_simple_request_t *simple_request,
+ axis2_http_simple_response_t *simple_response,
+ axis2_ssize_t content_length)
+{
+ axis2_http_header_t *conn_header = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, svr_conn, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, simple_request, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, simple_response, AXIS2_FAILURE);
+ if (AXIS2_FALSE == AXIS2_HTTP_SIMPLE_RESPONSE_CONTAINS_HEADER
+ (simple_response, env, AXIS2_HTTP_HEADER_CONNECTION))
+ {
+ conn_header = AXIS2_HTTP_SIMPLE_REQUEST_GET_FIRST_HEADER(simple_request,
+ env, AXIS2_HTTP_HEADER_CONNECTION);
+ if (conn_header)
+ {
+ if (0 == AXIS2_STRCASECMP(AXIS2_HTTP_HEADER_GET_VALUE(conn_header,
+ env), AXIS2_HTTP_HEADER_CONNECTION_KEEPALIVE))
+ {
+ axis2_http_header_t *header = axis2_http_header_create(env,
+ AXIS2_HTTP_HEADER_CONNECTION,
+ AXIS2_HTTP_HEADER_CONNECTION_KEEPALIVE);
+ AXIS2_HTTP_SIMPLE_RESPONSE_SET_HEADER(simple_response, env,
+ header);
+ AXIS2_SIMPLE_HTTP_SVR_CONN_SET_KEEP_ALIVE(svr_conn, env,
+ AXIS2_TRUE);
+ }
+ if (0 == AXIS2_STRCASECMP(AXIS2_HTTP_HEADER_GET_VALUE(conn_header,
+ env), AXIS2_HTTP_HEADER_CONNECTION_CLOSE))
+ {
+ axis2_http_header_t *header = axis2_http_header_create(env,
+ AXIS2_HTTP_HEADER_CONNECTION,
+ AXIS2_HTTP_HEADER_CONNECTION_CLOSE);
+ AXIS2_HTTP_SIMPLE_RESPONSE_SET_HEADER(simple_response, env,
+ header);
+ AXIS2_SIMPLE_HTTP_SVR_CONN_SET_KEEP_ALIVE(svr_conn, env,
+ AXIS2_FALSE);
+ }
+ }
+ else
+ {
+ if (AXIS2_HTTP_SIMPLE_RESPONSE_GET_HTTP_VERSION(simple_response, env)
+ && AXIS2_STRCASECMP(
+ AXIS2_HTTP_SIMPLE_RESPONSE_GET_HTTP_VERSION(
+ simple_response, env), AXIS2_HTTP_HEADER_PROTOCOL_11))
+ {
+ AXIS2_SIMPLE_HTTP_SVR_CONN_SET_KEEP_ALIVE(svr_conn, env,
+ AXIS2_TRUE);
+ }
+ else
+ {
+ AXIS2_SIMPLE_HTTP_SVR_CONN_SET_KEEP_ALIVE(svr_conn, env,
+ AXIS2_FALSE);
+ }
+ }
+ if (AXIS2_FALSE == AXIS2_HTTP_SIMPLE_REQUEST_CONTAINS_HEADER(
+ simple_request, env,
+ AXIS2_HTTP_HEADER_TRANSFER_ENCODING))
+ {
+ if (0 != content_length)
+ {
+ axis2_char_t content_len_str[10];
+ axis2_http_header_t *content_len_hdr = NULL;
+
+ sprintf(content_len_str, "%d", content_length);
+ content_len_hdr = axis2_http_header_create(
+ env, AXIS2_HTTP_HEADER_CONTENT_LENGTH, content_len_str);
+ AXIS2_HTTP_SIMPLE_RESPONSE_SET_HEADER(simple_response, env,
+ content_len_hdr);
+ }
+ }
+ else
+ {
+ axis2_http_header_t *transfer_enc_header = axis2_http_header_create(
+ env, AXIS2_HTTP_HEADER_TRANSFER_ENCODING,
+ AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED);
+ AXIS2_HTTP_SIMPLE_RESPONSE_SET_HEADER(simple_response, env,
+ transfer_enc_header);
+ }
+ }
+ return AXIS2_SUCCESS;
+}
+
+/*
+ * This is only called for HTTP/1.1 to enable 1.1 specific parameters.
+ *
+ */
+axis2_status_t AXIS2_CALL
+axis2_http_worker_set_transport_out_config(
+ axis2_http_worker_t *http_worker,
+ const axis2_env_t *env,
+ axis2_conf_ctx_t *conf_ctx,
+ axis2_http_simple_response_t *simple_response)
+{
+ axis2_conf_t *config = NULL;
+
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, conf_ctx, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, simple_response, AXIS2_FAILURE);
+
+ config = AXIS2_CONF_CTX_GET_CONF(conf_ctx, env);
+
+ /*
+ TODO implement the method
+ */
+ return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+axis2_http_worker_get_headers(
+ axis2_http_worker_t *http_worker,
+ const axis2_env_t *env,
+ axis2_http_simple_request_t *request)
+{
+ axis2_array_list_t *header_list = NULL;
+ int hdr_count = 0;
+ int i = 0;
+ axis2_hash_t *header_map = NULL;
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_PARAM_CHECK(env->error, request, AXIS2_FAILURE);
+
+ header_list = AXIS2_HTTP_SIMPLE_REQUEST_GET_HEADERS(request, env);
+ if (NULL == header_list)
+ {
+ return NULL;
+ }
+ hdr_count = AXIS2_ARRAY_LIST_SIZE(header_list, env);
+ if (0 == hdr_count)
+ {
+ return NULL;
+ }
+
+ for (i = 0; i < hdr_count; i++)
+ {
+ axis2_http_header_t *tmp_hdr = NULL;
+ tmp_hdr = AXIS2_ARRAY_LIST_GET(header_list, env, i);
+ if (NULL == tmp_hdr)
+ {
+ continue;
+ }
+ if (NULL == header_map)
+ {
+ header_map = axis2_hash_make(env);
+ if (NULL == header_map)
+ {
+ return NULL;
+ }
+ }
+ axis2_hash_set(header_map, AXIS2_HTTP_HEADER_GET_NAME(tmp_hdr, env),
+ AXIS2_HASH_KEY_STRING, tmp_hdr);
+ }
+ return header_map;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_http_worker_set_svr_port(
+ axis2_http_worker_t *worker,
+ const axis2_env_t *env,
+ int port)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+ AXIS2_INTF_TO_IMPL(worker)->svr_port = port;
+ return AXIS2_SUCCESS;
+}
Modified: webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/server/simple_axis2_server/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/server/simple_axis2_server/Makefile.am?view=diff&rev=507465&r1=507464&r2=507465
==============================================================================
--- webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/server/simple_axis2_server/Makefile.am (original)
+++ webservices/axis2/scratch/c/dinesh/486/c/modules/core/transport/http/server/simple_axis2_server/Makefile.am Wed Feb 14 02:14:08 2007
@@ -2,23 +2,21 @@
prgbin_PROGRAMS = axis2_http_server
SUBDIRS =
AM_CFLAGS = -g -pthread
-axis2_http_server_SOURCES = http_server_main.c\
-http_server.c\
- http_worker.c
+axis2_http_server_SOURCES = http_server_main.c
axis2_http_server_LDADD = $(LDFLAGS) \
- -L$(top_builddir)/modules/core/engine \
- -L$(top_builddir)/modules/core/transport/http/sender \
- -L$(top_builddir)/modules/core/transport/http/receiver \
- $(top_builddir)/axiom/src/om/libaxis2_axiom.la \
- $(top_builddir)/util/src/libaxis2_util.la \
- ../../../../../../axiom/src/parser/$(WRAPPER_DIR)/libaxis2_parser.la \
- -laxis2_engine \
- -lpthread \
- -laxis2_http_sender \
- -laxis2_http_receiver \
- -L$(top_builddir)$(GUTHTHILA_LIBS) \
- $(LIBXML2_LIBS)
+ $(top_builddir)/modules/core/transport/http/libaxis2_http.la \
+ $(top_builddir)/axiom/src/om/libaxis2_axiom.la \
+ $(top_builddir)/util/src/libaxis2_util.la \
+ $(top_builddir)/axiom/src/parser/$(WRAPPER_DIR)/libaxis2_parser.la \
+ $(top_builddir)/modules/core/description/libaxis2_description.la \
+ $(top_builddir)/modules/core/deployment/libaxis2_deployment.la \
+ $(top_builddir)/modules/core/context/libaxis2_context.la \
+ $(top_builddir)/modules/core/clientapi/libaxis2_clientapi.la \
+ $(top_builddir)/modules/core/engine/libaxis2_engine.la \
+ $(top_builddir)/modules/core/transport/http/sender/libaxis2_http_sender.la \
+ $(top_builddir)/modules/core/transport/http/receiver/libaxis2_http_receiver.la \
+ -lpthread
INCLUDES = -I$(top_builddir)/include \
-I$(top_builddir)/modules/core/description\
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org