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/10/08 07:13:16 UTC

svn commit: r454079 - in /webservices/axis2/trunk/c: include/ modules/core/clientapi/ modules/core/deployment/ modules/core/description/ modules/core/transport/http/ modules/core/transport/http/sender/ samples/client/echo/ samples/client/notify/ util/i...

Author: samisa
Date: Sat Oct  7 22:13:15 2006
New Revision: 454079

URL: http://svn.apache.org/viewvc?view=rev&rev=454079
Log:
Reverting chnges to the core API and the related changes to make the build stable back again

Modified:
    webservices/axis2/trunk/c/include/axis2_http_client.h
    webservices/axis2/trunk/c/include/axis2_options.h
    webservices/axis2/trunk/c/include/axis2_svc.h
    webservices/axis2/trunk/c/include/axis2_svc_client.h
    webservices/axis2/trunk/c/modules/core/clientapi/op_client.c
    webservices/axis2/trunk/c/modules/core/clientapi/options.c
    webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c
    webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c
    webservices/axis2/trunk/c/modules/core/description/svc.c
    webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c
    webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c
    webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c
    webservices/axis2/trunk/c/samples/client/echo/echo.c
    webservices/axis2/trunk/c/samples/client/notify/notify_client.c
    webservices/axis2/trunk/c/util/include/axis2_error.h
    webservices/axis2/trunk/c/util/include/axis2_string.h
    webservices/axis2/trunk/c/util/include/axis2_utils_defines.h
    webservices/axis2/trunk/c/util/src/error.c

Modified: webservices/axis2/trunk/c/include/axis2_http_client.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_client.h?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_client.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_client.h Sat Oct  7 22:13:15 2006
@@ -147,12 +147,6 @@
                 get_proxy)(
                     const axis2_http_client_t *client,
                     const axis2_env_t *env);
-        
-        axis2_status_t (AXIS2_CALL *
-                set_dump) (
-                    axis2_http_client_t *client,
-                    const axis2_env_t *env,
-                    axis2_bool_t dump);
 
         /**
          * @param client pointer to client
@@ -243,11 +237,6 @@
     @sa axis2_http_client_ops#get_proxy */
 #define AXIS2_HTTP_CLIENT_GET_PROXY(client, env) \
                                 ((client)->ops->get_proxy(client, env))
-
-/** Set dump true.
-    @sa axis2_http_client_ops#set_dump */
-#define AXIS2_HTTP_CLIENT_SET_DUMP(client, env, dump) \
-                                ((client)->ops->set_dump(client, env, dump))
 
 /** Frees the http client.
     @sa axis2_http_client_ops#free */

Modified: webservices/axis2/trunk/c/include/axis2_options.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_options.h?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_options.h (original)
+++ webservices/axis2/trunk/c/include/axis2_options.h Sat Oct  7 22:13:15 2006
@@ -637,39 +637,16 @@
                     const axis2_env_t *env);
 
         /**
-         * Set the target endpoint reference the receiving end is listening to
+         * Frees options struct.
          * @param options pointer to options struct
          * @param env pointer to environment struct
          * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
          */
         axis2_status_t (AXIS2_CALL *
-                set_target_epr) (
+                free)(
                     axis2_options_t *options,
-                    const axis2_env_t *env,
-                    axis2_endpoint_ref_t *epr);
-
-        /**
-         * Get the target endpoint reference the receiving end is listening to
-         * @param options pointer to options struct
-         * @param env pointer to environment struct
-         * @return endpoint reference the receiving end is listening to
-         */
-        axis2_endpoint_ref_t *(AXIS2_CALL *
-                get_target_epr) (
-                    const axis2_options_t *options,
                     const axis2_env_t *env);
-
-                /**
-                 * Frees options struct.
-                 * @param options pointer to options struct
-                 * @param env pointer to environment struct
-                 * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
-                 */
-                axis2_status_t (AXIS2_CALL *
-                        free)(
-                            axis2_options_t *options,
-                            const axis2_env_t *env);
-            };
+    };
 
     /**
      * options struct.
@@ -929,16 +906,6 @@
     @sa axis2_options_ops#get_enable_mtom */
 #define AXIS2_OPTIONS_GET_ENABLE_MTOM(options, env) \
       ((options)->ops->get_enable_mtom(options, env))
-
-/** Set target epr.
-    @sa axis2_options_ops#set_target_epr */
-#define AXIS2_OPTIONS_SET_TARGET_EPR(options, env, epr) \
-      ((options)->ops->set_target_epr(options, env, epr))
-
-/** Get target epr.
-    @sa axis2_options_ops#get_target_epr */
-#define AXIS2_OPTIONS_GET_TARGET_EPR(options, env) \
-      ((options)->ops->get_target_epr(options, env))
 
 /** Frees the options struct.
     @sa axis2_options_ops#free*/

Modified: webservices/axis2/trunk/c/include/axis2_svc.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_svc.h?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_svc.h (original)
+++ webservices/axis2/trunk/c/include/axis2_svc.h Sat Oct  7 22:13:15 2006
@@ -1024,44 +1024,6 @@
                 populate_schema_mappings)(
                     axis2_svc_t *svc,
                     const axis2_env_t *env);
-
-        /**
-         * Set the path to the service
-         * @param svc pointer to service struct
-         * @param env pointer to environment struct
-         * @param svc_path path to the service
-         * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE 
-         */
-        axis2_status_t (AXIS2_CALL *
-                set_path) (
-                    axis2_svc_t *svc,
-                    const axis2_env_t *env,
-                    const axis2_char_t *svc_path);
-        
-        /**
-         * Get the path to the service
-         * @param svc pointer to service struct
-         * @param env pointer to environment struct
-         * @return a pointer to the service path
-         */
-        axis2_char_t *(AXIS2_CALL *
-                get_path) (
-                    axis2_svc_t *svc,
-                    const axis2_env_t *env);
-        
-        /**
-         * This method implementation is a tempory one to print wsdl. 
-         * This prints a static wsdl stored in the service path. When an 
-         * c2wsdl implementation is available this will be modified
-         * to create the wsdl dynamically from the service in memory.
-         * @param svc pointer to service struct
-         * @param env pointer to environment struct
-         * @return a pointer to the buffer containing wsdl 
-         */
-        axis2_char_t *(AXIS2_CALL *
-                print_wsdl) (
-                    axis2_svc_t *svc,
-                    const axis2_env_t *env);
     };
 
     /**
@@ -1472,21 +1434,6 @@
     @sa axis2_svc_ops#populate_schema_mappings */
 #define AXIS2_SVC_POPULATE_SCHEMA_MAPPINGS(svc, env) \
         ((svc)->ops->populate_schema_mappings(svc, env))
-
-/** Sets service path.
-    @sa axis2_svc_ops#set_path */
-#define AXIS2_SVC_SET_PATH(svc, env, svc_path) \
-        ((svc)->ops->set_path(svc, env, svc_path))
-
-/** Gets service path.
-    @sa axis2_svc_ops#get_path */
-#define AXIS2_SVC_GET_PATH(svc, env) \
-        ((svc)->ops->get_path(svc, env))
-
-/** Prints wsdl.
-    @sa axis2_svc_ops#print_wsdl */
-#define AXIS2_SVC_PRINT_WSDL(svc, env) \
-        ((svc)->ops->print_wsdl(svc, env))
 
 /** @} */
 #ifdef __cplusplus

Modified: webservices/axis2/trunk/c/include/axis2_svc_client.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_svc_client.h?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_svc_client.h (original)
+++ webservices/axis2/trunk/c/include/axis2_svc_client.h Sat Oct  7 22:13:15 2006
@@ -336,8 +336,7 @@
                     const axis2_env_t *env);
 
         /**
-         * Sets the target endpoint ref. If this is not set then the target
-         * is deduced from wsa to epr.
+         * Sets the target endpoint ref.
          * @param svc_client pointer to service client struct
          * @param env pointer to environment struct
          * @param target_epr pointer to the endpoint_ref struct to be set as 
@@ -385,19 +384,6 @@
                 get_op_client)(
                     const axis2_svc_client_t *svc_client,
                     const axis2_env_t *env);
-
-        /**
-         * Set the listen port on which the callback server is actually
-         * listening to
-         * @param svc_client pointer to service_client struct
-         * @param env env pointer to environment struct
-         * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
-         */
-        axis2_status_t (AXIS2_CALL *
-                set_listen_port)(
-                    const axis2_svc_client_t *svc_client,
-                    const axis2_env_t *env,
-                    axis2_char_t *port);
     };
 
     /**
@@ -592,11 +578,6 @@
     @sa axis2_svc_client_ops#get_op_client */
     #define AXIS2_SVC_CLIENT_GET_OP_CLIENT(svc_client, env) \
             ((svc_client)->ops->get_op_client(svc_client, env))
-
-/** Set the listen port .
-    @sa axis2_svc_client_ops#set_listen_port */
-    #define AXIS2_SVC_CLIENT_SET_LISTEN_PORT(svc_client, env, port) \
-            ((svc_client)->ops->set_listen_port(svc_client, env, port))
 
 
 /** @} */

Modified: webservices/axis2/trunk/c/modules/core/clientapi/op_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/op_client.c?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/op_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/op_client.c Sat Oct  7 22:13:15 2006
@@ -405,13 +405,7 @@
     if (!transport_out)
     {
         axis2_endpoint_ref_t *to_epr = NULL;
-        /**
-         * Modify the code so that the to_epr is taken from 
-         * AXIS2_OPTIONS_GET_TARGET_EPR.
-         */
-        /*to_epr = AXIS2_OPTIONS_GET_TO(op_client_impl->options, env);*/
-        to_epr = AXIS2_OPTIONS_GET_TARGET_EPR(op_client_impl->options, env);
-        
+        to_epr = AXIS2_OPTIONS_GET_TO(op_client_impl->options, env);
         if (!to_epr)
             to_epr = AXIS2_MSG_CTX_GET_TO(msg_ctx, env);
         transport_out = AXIS2_MEP_CLIENT_INFER_TRANSPORT(op_client_impl->base, env, to_epr);
@@ -492,10 +486,8 @@
             /* Usual Request-Response Sync implementation */
             property = axis2_property_create(env);
             AXIS2_PROPERTY_SET_SCOPE(property, env, AXIS2_SCOPE_REQUEST);
-            /*epr_address = AXIS2_ENDPOINT_REF_GET_ADDRESS(
-                        AXIS2_OPTIONS_GET_TO(op_client_impl->options, env), env);*/
             epr_address = AXIS2_ENDPOINT_REF_GET_ADDRESS(
-                    AXIS2_OPTIONS_GET_TARGET_EPR(op_client_impl->options, env), env);
+                        AXIS2_OPTIONS_GET_TO(op_client_impl->options, env), env);
             address = AXIS2_STRDUP(epr_address, env);
             AXIS2_PROPERTY_SET_VALUE(property, env, address);
             AXIS2_MSG_CTX_SET_PROPERTY(msg_ctx, env,

Modified: webservices/axis2/trunk/c/modules/core/clientapi/options.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/options.c?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/options.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/options.c Sat Oct  7 22:13:15 2006
@@ -32,8 +32,6 @@
     axis2_hash_t *properties;
 
     axis2_char_t *soap_version_uri;
-    
-    axis2_endpoint_ref_t *target_epr;
 
     int soap_version;
 
@@ -154,11 +152,6 @@
     const axis2_options_t *options,
     const axis2_env_t *env);
 
-axis2_endpoint_ref_t *AXIS2_CALL
-axis2_options_get_target_epr(
-    const axis2_options_t *options,
-    const axis2_env_t *env);
-
 
 axis2_bool_t AXIS2_CALL
 axis2_options_get_use_separate_listener(
@@ -201,12 +194,6 @@
     axis2_endpoint_ref_t *to);
 
 axis2_status_t AXIS2_CALL
-axis2_options_set_target_epr(
-    axis2_options_t *options,
-    const axis2_env_t *env,
-    axis2_endpoint_ref_t *epr);
-
-axis2_status_t AXIS2_CALL
 axis2_options_set_transport_receiver(
     axis2_options_t *options,
     const axis2_env_t *env,
@@ -732,18 +719,6 @@
     return to;
 }
 
-axis2_endpoint_ref_t* AXIS2_CALL
-axis2_options_get_target_epr(const axis2_options_t *options,
-        const axis2_env_t *env)
-{
-    axis2_options_impl_t *options_impl = NULL;
-    AXIS2_ENV_CHECK(env, NULL);
-
-    options_impl = AXIS2_INTF_TO_IMPL(options);
-
-    return options_impl->target_epr;
-}
-
 
 axis2_bool_t AXIS2_CALL
 axis2_options_get_use_separate_listener(const axis2_options_t *options,
@@ -838,18 +813,6 @@
 }
 
 axis2_status_t AXIS2_CALL
-axis2_options_set_target_epr(
-    axis2_options_t *options,
-    const axis2_env_t *env,
-    axis2_endpoint_ref_t *epr)
-{
-    axis2_options_impl_t *options_impl = NULL;
-    options_impl = AXIS2_INTF_TO_IMPL(options);
-    options_impl->target_epr = epr;
-    return AXIS2_SUCCESS;
-}
-
-axis2_status_t AXIS2_CALL
 axis2_options_set_transport_receiver(
     axis2_options_t *options,
     const axis2_env_t *env,
@@ -1235,7 +1198,6 @@
     options_impl->manage_session = -1;
     options_impl->soap_version = AXIOM_SOAP12;
     options_impl->enable_mtom = AXIS2_FALSE;
-    options_impl->target_epr = NULL;
 }
 
 static void
@@ -1288,8 +1250,6 @@
     options->ops->get_soap_version = axis2_options_get_soap_version;
     options->ops->set_enable_mtom = axis2_options_set_enable_mtom;
     options->ops->get_enable_mtom = axis2_options_get_enable_mtom;
-    options->ops->set_target_epr = axis2_options_set_target_epr;
-    options->ops->get_target_epr = axis2_options_get_target_epr;
     options->ops->free = axis2_options_free;
 }
 

Modified: webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c Sat Oct  7 22:13:15 2006
@@ -207,12 +207,6 @@
     const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
-axis2_svc_client_set_listen_port(
-    const axis2_svc_client_t *svc_client,
-    const axis2_env_t *env,
-    axis2_char_t *port);
-
-axis2_status_t AXIS2_CALL
 axis2_svc_client_free(
     axis2_svc_client_t *svc_client,
     const axis2_env_t *env);
@@ -1221,7 +1215,6 @@
     svc_client->ops->get_svc_ctx = axis2_svc_client_get_svc_ctx;
     svc_client->ops->free_fn = axis2_svc_client_free;
     svc_client->ops->get_op_client = axis2_svc_client_get_op_client;
-    svc_client->ops->set_listen_port = axis2_svc_client_set_listen_port;
 }
 
 static axis2_svc_t *
@@ -1475,42 +1468,4 @@
     const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(svc_client)->op_client;
-}
-
-axis2_status_t AXIS2_CALL
-axis2_svc_client_set_listen_port(
-    const axis2_svc_client_t *svc_client,
-    const axis2_env_t *env,
-    axis2_char_t *port)
-{
-    axis2_svc_client_impl_t *svc_client_impl = NULL;
-    axis2_transport_in_desc_t *transport_in = NULL;
-    axis2_qname_t *transport_in_qname = NULL;
-    axis2_param_t *param = NULL;
-    const axis2_char_t *transport_in_protocol = NULL;
-    axis2_transport_receiver_t *listener = NULL;
-    axis2_status_t status = AXIS2_FAILURE;
-
-    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-
-    svc_client_impl = AXIS2_INTF_TO_IMPL(svc_client);
-    transport_in_protocol =
-        AXIS2_OPTIONS_GET_TRANSPORT_IN_PROTOCOL(svc_client_impl->options, env);
-    if (!transport_in_protocol)
-        transport_in_protocol = AXIS2_TRANSPORT_HTTP;
-    
-    transport_in_qname = axis2_qname_create(env, transport_in_protocol, NULL, NULL);
-    transport_in = AXIS2_CONF_GET_TRANSPORT_IN(svc_client_impl->conf, env, 
-            transport_in_qname);
-    param = AXIS2_TRANSPORT_IN_DESC_GET_PARAM(transport_in, env, "port");
-    AXIS2_PARAM_SET_VALUE(param, env, AXIS2_STRDUP(port, env));
-    listener = AXIS2_TRANSPORT_IN_DESC_GET_RECV(transport_in, env);
-    if (listener)
-    {
-        status = AXIS2_TRANSPORT_RECEIVER_INIT(listener, env, 
-                svc_client_impl->conf_ctx, transport_in);
-    }
-    AXIS2_QNAME_FREE(transport_in_qname, env);
-    
-    return status;
 }

Modified: webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c Sat Oct  7 22:13:15 2006
@@ -361,7 +361,6 @@
     svc_folder_path = AXIS2_FILE_GET_PATH(svc_folder, env);
     dll_path = axis2_strcat(env, svc_folder_path, AXIS2_PATH_SEP_STR,
             svc_dll_name, NULL);
-    AXIS2_SVC_SET_PATH(builder_impl->svc, env, svc_folder_path);
     AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "dll path is : %s", dll_path);
     status = AXIS2_DLL_DESC_SET_NAME(dll_desc, env, dll_path);
     if (AXIS2_SUCCESS != status)

Modified: webservices/axis2/trunk/c/modules/core/description/svc.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/description/svc.c?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/svc.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/svc.c Sat Oct  7 22:13:15 2006
@@ -16,7 +16,6 @@
 
 #include <axis2_svc.h>
 #include <axis2_addr.h>
-#include <axis2_stream.h>
 #include <axis2_property.h>
 #include <xml_schema_obj_collection.h>
 #include <axis2_module.h>
@@ -32,8 +31,6 @@
     /** to keep last update time of the service */
     long last_update;
     axis2_char_t *filename;
-    /** service path */
-    axis2_char_t *svc_path;
     /** to store module descriptions at deploy time parsing */
     axis2_array_list_t *module_list;
     /**
@@ -514,28 +511,12 @@
     xml_schema_t *schema,
     axis2_hash_t *names);
 
-axis2_status_t AXIS2_CALL
-axis2_svc_set_path(
-    axis2_svc_t *svc,
-    const axis2_env_t *env,
-    const axis2_char_t *svc_path);
-
-axis2_char_t *AXIS2_CALL
-axis2_svc_get_path(
-    axis2_svc_t *svc,
-    const axis2_env_t *env);
-
 axis2_hash_t *AXIS2_CALL
 axis2_svc_swap_mapping_table(
     axis2_svc_t *svc,
     const axis2_env_t *env,
     axis2_hash_t *orig_table);
 
-axis2_char_t *AXIS2_CALL
-axis2_svc_print_wsdl(
-    axis2_svc_t *svc,
-    const axis2_env_t *env);
-
 AXIS2_EXTERN axis2_svc_t *AXIS2_CALL
 axis2_svc_create(
     const axis2_env_t *env)
@@ -579,7 +560,6 @@
     svc_impl->target_ns = NULL;
     svc_impl->target_ns_prefix = NULL;
     svc_impl->sc_calc_count = 0;
-    svc_impl->svc_path = NULL;
 
     svc_impl->svc.param_container = axis2_param_container_create(env);
     if (NULL == svc_impl->svc.param_container)
@@ -809,9 +789,6 @@
     svc_impl->svc.ops->set_ns_map = axis2_svc_set_ns_map;
     svc_impl->svc.ops->populate_schema_mappings =
         axis2_svc_populate_schema_mappings;
-    svc_impl->svc.ops->set_path = axis2_svc_set_path;
-    svc_impl->svc.ops->get_path = axis2_svc_get_path;
-    svc_impl->svc.ops->print_wsdl = axis2_svc_print_wsdl;
 
     return &(svc_impl->svc);
 }
@@ -903,12 +880,6 @@
         AXIS2_FREE(env->allocator, svc_impl->filename);
         svc_impl->filename = NULL;
     }
-    
-    if (svc_impl->svc_path)
-    {
-        AXIS2_FREE(env->allocator, svc_impl->svc_path);
-        svc_impl->svc_path = NULL;
-    }
 
     svc_impl->parent = NULL;
 
@@ -2716,71 +2687,4 @@
     }
     return new_table;
 }
-
-axis2_status_t AXIS2_CALL
-axis2_svc_set_path(
-    axis2_svc_t *svc,
-    const axis2_env_t *env,
-    const axis2_char_t *svc_path)
-{
-    axis2_svc_impl_t *svc_impl = NULL;
-    
-    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK(env->error, svc_path, AXIS2_FAILURE);
-    svc_impl = AXIS2_INTF_TO_IMPL(svc);
-
-    svc_impl->svc_path = AXIS2_STRDUP(svc_path, env);
-    if(!svc_impl->svc_path)
-    {
-        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        return AXIS2_FAILURE;
-    }
-    return AXIS2_SUCCESS;
-}
-
-axis2_char_t *AXIS2_CALL
-axis2_svc_get_path(
-    axis2_svc_t *svc,
-    const axis2_env_t *env)
-{
-    axis2_svc_impl_t *svc_impl = NULL;
-    
-    AXIS2_ENV_CHECK(env, NULL);
-    svc_impl = AXIS2_INTF_TO_IMPL(svc);
-
-    return svc_impl->svc_path;
-}
-
-axis2_char_t *AXIS2_CALL
-axis2_svc_print_wsdl(
-    axis2_svc_t *svc,
-    const axis2_env_t *env)
-{
-    axis2_svc_impl_t *svc_impl = NULL;
-    axis2_char_t *wsdl_path = NULL;
-    axis2_stream_t *stream = NULL;
-    void *fd = NULL;
-    int count = 0;
-    int bytes_read = 0;
-    axis2_char_t *buffer = NULL;
-    
-    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    svc_impl = AXIS2_INTF_TO_IMPL(svc);
-
-    if(!svc_impl->svc_path)
-    {
-        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        return AXIS2_FAILURE;
-    }
-    wsdl_path = axis2_strcat(env, svc_impl->svc_path, AXIS2_PATH_SEP_STR, 
-            svc_impl->axis_svc_name, ".wsdl", NULL);
-    fd = axis2_file_handler_open(wsdl_path, "rt");
-    stream = axis2_stream_create_file(env, fd);
-    count = 24 * 8096 * sizeof(axis2_char_t);
-    buffer = (axis2_char_t*) AXIS2_MALLOC(env->allocator, count);
-    bytes_read = AXIS2_STREAM_READ(stream, env, buffer, count);
-    buffer[bytes_read] = '\0';
-    return buffer;
-}
-
 

Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c Sat Oct  7 22:13:15 2006
@@ -300,53 +300,6 @@
                 AXIS2_HTTP_SIMPLE_REQUEST_GET_REQUEST_LINE(
                     simple_request, env), env), AXIS2_HTTP_HEADER_GET))
     {
-        axis2_char_t *temp_str = NULL;
-        /* Print the wsdl */
-        temp_str = AXIS2_STRSTR(url_external_form, "?wsdl");
-        if(temp_str)
-        {
-            axis2_char_t *temp_str2 = NULL;
-            axis2_char_t *svc_name = NULL;
-            axis2_svc_t *svc = NULL;
-            axis2_conf_t *conf = NULL;
-
-            *temp_str = '\0';
-            /*axis2_ssize_t len = AXIS2_STRLEN(url_external_form);*/
-            temp_str2 = AXIS2_RINDEX(url_external_form, '/');
-            svc_name = AXIS2_STRDUP(temp_str2+1, env);
-            conf = AXIS2_CONF_CTX_GET_CONF(conf_ctx, env);
-            if(conf)
-            {
-                svc = AXIS2_CONF_GET_SVC(conf, env, svc_name);
-            }
-            if(svc)
-            {
-                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_SVC_PRINT_WSDL(svc, env);
-                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_FREE(env->allocator, body_string);
-                AXIS2_SIMPLE_HTTP_SVR_CONN_WRITE_RESPONSE(svr_conn, env, response);
-                AXIS2_HTTP_SIMPLE_RESPONSE_FREE(response, env);
-                return AXIS2_TRUE;
-
-            }
-        }
-
         processed = axis2_http_transport_utils_process_http_get_request
                 (env, msg_ctx, request_body, out_stream,
                         AXIS2_HTTP_SIMPLE_REQUEST_GET_CONTENT_TYPE(

Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c Sat Oct  7 22:13:15 2006
@@ -48,7 +48,6 @@
     axis2_char_t *proxy_host;
     int proxy_port;
     axis2_char_t *proxy_host_port;
-    axis2_bool_t dump;
 }
 axis2_http_client_impl_t;
 
@@ -124,12 +123,6 @@
     void *client,
     const axis2_env_t *env);
 
-axis2_status_t AXIS2_CALL
-axis2_http_client_set_dump(
-    axis2_http_client_t *client,
-    const axis2_env_t *env,
-    axis2_bool_t dump);
-
 /***************************** End of function headers ************************/
 
 AXIS2_EXTERN axis2_http_client_t *AXIS2_CALL
@@ -159,7 +152,6 @@
     http_client_impl->proxy_port = 0;
     http_client_impl->proxy_host = NULL;
     http_client_impl->proxy_host_port = NULL;
-    http_client_impl->dump = AXIS2_FALSE;
 
     http_client_impl->http_client.ops = AXIS2_MALLOC(env->allocator,
             sizeof(axis2_http_client_ops_t));
@@ -185,7 +177,6 @@
         axis2_http_client_set_proxy;
     http_client_impl->http_client.ops->get_proxy =
         axis2_http_client_get_proxy;
-    http_client_impl->http_client.ops->set_dump = axis2_http_client_set_dump;
     http_client_impl->http_client.ops->free = axis2_http_client_free;
 
     return &(http_client_impl->http_client);
@@ -256,15 +247,6 @@
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     client_impl = AXIS2_INTF_TO_IMPL(client);
 
-    body_size = AXIS2_HTTP_SIMPLE_REQUEST_GET_BODY_BYTES(request, env,
-            &str_body);
-    if(client_impl->dump == AXIS2_TRUE)
-    {
-        /* We just print the input message and return */
-        printf("----------------Input message--------------:\n");
-        printf("%s\n", str_body);
-        return AXIS2_SUCCESS;
-    }
     if (NULL == client_impl->url)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NULL_URL, AXIS2_FAILURE);
@@ -417,6 +399,8 @@
     wire_format = NULL;
     written = AXIS2_STREAM_WRITE(client_impl->data_stream, env, AXIS2_HTTP_CRLF,
             2);
+    body_size = AXIS2_HTTP_SIMPLE_REQUEST_GET_BODY_BYTES(request, env,
+            &str_body);
     if (body_size > 0 &&  str_body)
     {
         if (AXIS2_FALSE == chunking_enabled)
@@ -432,7 +416,6 @@
                     break;
                 }
             }
-            printf("\n");
         }
         else
         {
@@ -802,20 +785,4 @@
     }
     AXIS2_STREAM_FREE(tmp_stream, env);
     return AXIS2_SUCCESS;
-}
-
-axis2_status_t AXIS2_CALL
-axis2_http_client_set_dump(
-    axis2_http_client_t *client,
-    const axis2_env_t *env,
-    axis2_bool_t dump)
-{
-    axis2_http_client_impl_t *client_impl = NULL;
-    
-    client_impl = AXIS2_INTF_TO_IMPL(client);
-
-    client_impl->dump = dump;
-
-    return AXIS2_SUCCESS;
-
 }

Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/soap_over_http_sender.c Sat Oct  7 22:13:15 2006
@@ -206,7 +206,6 @@
     axis2_http_simple_response_t *response = NULL;
     axis2_char_t *content_type = NULL;
     axis2_property_t *property = NULL;
-    axis2_property_t *dump_property = NULL;
     axis2_byte_t *output_stream = NULL;
     int output_stream_size = 0;
     axis2_bool_t doing_mtom = AXIS2_FALSE;
@@ -234,16 +233,6 @@
     if (NULL == sender_impl->client)
     {
         return AXIS2_FAILURE;
-    }
-    dump_property = AXIS2_MSG_CTX_GET_PROPERTY(msg_ctx, env, 
-            AXIS2_DUMP_TRUE, AXIS2_FALSE);
-    if(dump_property)
-    {
-        axis2_char_t *dump_true = AXIS2_PROPERTY_GET_VALUE(dump_property, env);
-        if(0 == AXIS2_STRCMP(dump_true, AXIS2_VALUE_TRUE))
-        {
-            AXIS2_HTTP_CLIENT_SET_DUMP(sender_impl->client, env, AXIS2_TRUE);
-        }
     }
     /* configure proxy settings if we have set so
      */

Modified: webservices/axis2/trunk/c/samples/client/echo/echo.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/echo/echo.c?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/samples/client/echo/echo.c (original)
+++ webservices/axis2/trunk/c/samples/client/echo/echo.c Sat Oct  7 22:13:15 2006
@@ -56,9 +56,7 @@
 
     /* Setup options */
     options = axis2_options_create(env);
-    /*AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);*/
-    AXIS2_OPTIONS_SET_TARGET_EPR(options, env, endpoint_ref);
-
+    AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);
     AXIS2_OPTIONS_SET_ACTION(options, env,
             "http://ws.apache.org/axis2/c/samples/echoString");
 
@@ -87,7 +85,7 @@
     AXIS2_SVC_CLIENT_SET_OPTIONS(svc_client, env, options);
 
     /* Engage addressing module */
-    /*AXIS2_SVC_CLIENT_ENGAGE_MODULE(svc_client, env, AXIS2_MODULE_ADDRESSING);*/
+    AXIS2_SVC_CLIENT_ENGAGE_MODULE(svc_client, env, AXIS2_MODULE_ADDRESSING);
 
     /* Build the SOAP request message payload using OM API.*/
     payload = build_om_payload_for_echo_svc(env);

Modified: webservices/axis2/trunk/c/samples/client/notify/notify_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/notify/notify_client.c?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/samples/client/notify/notify_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/notify/notify_client.c Sat Oct  7 22:13:15 2006
@@ -83,7 +83,7 @@
     AXIS2_SVC_CLIENT_SET_OPTIONS(svc_client, env, options);
 
     /* Engage addressing module */
-    /*AXIS2_SVC_CLIENT_ENGAGE_MODULE(svc_client, env, AXIS2_MODULE_ADDRESSING);*/
+    AXIS2_SVC_CLIENT_ENGAGE_MODULE(svc_client, env, AXIS2_MODULE_ADDRESSING);
 
     /* Build the SOAP request message payload using OM API.*/
     payload = build_om_programatically(env);

Modified: webservices/axis2/trunk/c/util/include/axis2_error.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_error.h?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_error.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_error.h Sat Oct  7 22:13:15 2006
@@ -88,10 +88,6 @@
         AXIS2_ERROR_UNSUPPORTED_TYPE,
         /* Options object is not set */
         AXIS2_ERROR_OPTIONS_OBJECT_IS_NOT_SET,
-        /* No target endpoint reference provided */
-        AXIS2_ERROR_NO_TARGET_EPR_SET,
-        /* Addressing is enabled, but no target epr provided */
-        AXIS2_ERROR_ADDRESSING_ENABLED_BUT_NO_TARGET_EPR_SET,
         /*
          * Group - core:clientapi:diclient
          */

Modified: webservices/axis2/trunk/c/util/include/axis2_string.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_string.h?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_string.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_string.h Sat Oct  7 22:13:15 2006
@@ -105,7 +105,7 @@
     /**
      * Concatenate multiple strings, allocating memory
      * @param ... The strings to concatenate.  The final string must be NULL
-     * @return Null terminated new string
+     * @return The new string
      */
     AXIS2_EXTERN axis2_char_t * AXIS2_CALL
     axis2_strcat(const axis2_env_t *env, ...);

Modified: webservices/axis2/trunk/c/util/include/axis2_utils_defines.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_utils_defines.h?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_utils_defines.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_utils_defines.h Sat Oct  7 22:13:15 2006
@@ -166,11 +166,6 @@
     AXIS2_XML_PARSER_TYPE_DOC
 } axis2_xml_parser_type;
 
-/**
- * Used as the property key set the message dump property true. When this 
- * property is true the input message is dumped to the screen.
- */
-#define AXIS2_DUMP_TRUE "dump"
     
 #ifdef __cplusplus
 }

Modified: webservices/axis2/trunk/c/util/src/error.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/error.c?view=diff&rev=454079&r1=454078&r2=454079
==============================================================================
--- webservices/axis2/trunk/c/util/src/error.c (original)
+++ webservices/axis2/trunk/c/util/src/error.c Sat Oct  7 22:13:15 2006
@@ -67,10 +67,6 @@
         "type is not supported";
     axis2_error_messages[AXIS2_ERROR_OPTIONS_OBJECT_IS_NOT_SET] =
         "Options object is not set";
-    axis2_error_messages[AXIS2_ERROR_NO_TARGET_EPR_SET] =
-        "No target endpoint reference provided";
-    axis2_error_messages[AXIS2_ERROR_ADDRESSING_ENABLED_BUT_NO_TARGET_EPR_SET] =
-        "Addressing is enabled, but no target epr provided";
     /* core:clientapi:diclient */
 
     /* core:context */



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org