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 da...@apache.org on 2006/10/05 06:26:05 UTC

svn commit: r453105 - in /webservices/axis2/trunk/c: ./ axiom/ include/ modules/core/clientapi/ modules/core/deployment/ modules/core/description/ modules/core/transport/http/ modules/core/transport/http/sender/ samples/client/echo/ samples/client/noti...

Author: damitha
Date: Wed Oct  4 21:26:01 2006
New Revision: 453105

URL: http://svn.apache.org/viewvc?view=rev&rev=453105
Log:
Adding some error codes and added set_listener_address methods and set/get_target_epr methods to
svc_client

Removed:
    webservices/axis2/trunk/c/util/COPYING
Modified:
    webservices/axis2/trunk/c/axiom/COPYING
    webservices/axis2/trunk/c/configure.ac
    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/samples/server/math/Makefile.am
    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/axiom/COPYING
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/COPYING?view=diff&rev=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/axiom/COPYING (original)
+++ webservices/axis2/trunk/c/axiom/COPYING Wed Oct  4 21:26:01 2006
@@ -1,203 +0,0 @@
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed 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.
-

Modified: webservices/axis2/trunk/c/configure.ac
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/configure.ac?view=diff&rev=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/configure.ac (original)
+++ webservices/axis2/trunk/c/configure.ac Wed Oct  4 21:26:01 2006
@@ -41,7 +41,7 @@
 #CFLAGS="$CFLAGS -ansi -Wall -D_LARGEFILE64_SOURCE -Wno-implicit-function-declaration"
 CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
 if test "$GCC" = "yes"; then
-    CFLAGS="$CFLAGS -ansi -Wall -Wno-implicit-function-declaration -Werror"
+    CFLAGS="$CFLAGS -ansi -Wall -Wno-implicit-function-declaration"
 #    CFLAGS="$CFLAGS -ansi -Wall -Wno-implicit-function-declaration"
 fi
 LDFLAGS="-lpthread"

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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_client.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_client.h Wed Oct  4 21:26:01 2006
@@ -147,6 +147,12 @@
                 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
@@ -237,6 +243,11 @@
     @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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_options.h (original)
+++ webservices/axis2/trunk/c/include/axis2_options.h Wed Oct  4 21:26:01 2006
@@ -636,17 +636,28 @@
                     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)(
+                set_target_epr) (
                     axis2_options_t *options,
+                    const axis2_env_t *env,
+                    axis2_endpoint_ref_t *epr);
+
+        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.
@@ -906,6 +917,16 @@
     @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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_svc.h (original)
+++ webservices/axis2/trunk/c/include/axis2_svc.h Wed Oct  4 21:26:01 2006
@@ -1024,6 +1024,44 @@
                 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);
     };
 
     /**
@@ -1434,6 +1472,21 @@
     @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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_svc_client.h (original)
+++ webservices/axis2/trunk/c/include/axis2_svc_client.h Wed Oct  4 21:26:01 2006
@@ -384,6 +384,12 @@
                 get_op_client)(
                     const axis2_svc_client_t *svc_client,
                     const axis2_env_t *env);
+
+        axis2_status_t (AXIS2_CALL *
+                set_listen_port)(
+                    const axis2_svc_client_t *svc_client,
+                    const axis2_env_t *env,
+                    axis2_char_t *port);
     };
 
     /**
@@ -578,6 +584,11 @@
     @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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/op_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/op_client.c Wed Oct  4 21:26:01 2006
@@ -405,7 +405,13 @@
     if (!transport_out)
     {
         axis2_endpoint_ref_t *to_epr = NULL;
-        to_epr = AXIS2_OPTIONS_GET_TO(op_client_impl->options, env);
+        /**
+         * 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);
+        
         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);
@@ -486,8 +492,10 @@
             /* 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_TO(op_client_impl->options, env), env);
+                    AXIS2_OPTIONS_GET_TARGET_EPR(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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/options.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/options.c Wed Oct  4 21:26:01 2006
@@ -32,6 +32,8 @@
     axis2_hash_t *properties;
 
     axis2_char_t *soap_version_uri;
+    
+    axis2_char_t *target_epr;
 
     int soap_version;
 
@@ -152,6 +154,11 @@
     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(
@@ -194,6 +201,12 @@
     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,
@@ -719,6 +732,19 @@
     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_endpoint_ref_t *to = 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,
@@ -813,6 +839,18 @@
 }
 
 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,
@@ -1198,6 +1236,7 @@
     options_impl->manage_session = -1;
     options_impl->soap_version = AXIOM_SOAP12;
     options_impl->enable_mtom = AXIS2_FALSE;
+    options_impl->target_epr = NULL;
 }
 
 static void
@@ -1250,6 +1289,8 @@
     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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c Wed Oct  4 21:26:01 2006
@@ -207,6 +207,12 @@
     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);
@@ -1215,6 +1221,7 @@
     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 *
@@ -1468,4 +1475,43 @@
     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_char_t *port_value = NULL;
+    axis2_param_t *param = NULL;
+    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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/svc_builder.c Wed Oct  4 21:26:01 2006
@@ -361,6 +361,7 @@
     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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/svc.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/svc.c Wed Oct  4 21:26:01 2006
@@ -16,6 +16,7 @@
 
 #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>
@@ -31,6 +32,8 @@
     /** 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;
     /**
@@ -511,12 +514,28 @@
     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)
@@ -560,6 +579,7 @@
     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)
@@ -789,6 +809,9 @@
     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);
 }
@@ -880,6 +903,12 @@
         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;
 
@@ -2687,4 +2716,71 @@
     }
     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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c Wed Oct  4 21:26:01 2006
@@ -300,6 +300,53 @@
                 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=453105&r1=453104&r2=453105
==============================================================================
--- 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 Wed Oct  4 21:26:01 2006
@@ -48,6 +48,7 @@
     axis2_char_t *proxy_host;
     int proxy_port;
     axis2_char_t *proxy_host_port;
+    axis2_bool_t dump;
 }
 axis2_http_client_impl_t;
 
@@ -123,6 +124,12 @@
     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
@@ -152,6 +159,7 @@
     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));
@@ -177,6 +185,7 @@
         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);
@@ -247,6 +256,15 @@
     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);
@@ -399,8 +417,6 @@
     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)
@@ -416,6 +432,7 @@
                     break;
                 }
             }
+            printf("\n");
         }
         else
         {
@@ -785,4 +802,18 @@
     }
     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;
+
 }

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=453105&r1=453104&r2=453105
==============================================================================
--- 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 Wed Oct  4 21:26:01 2006
@@ -206,6 +206,7 @@
     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;
@@ -233,6 +234,16 @@
     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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/samples/client/echo/echo.c (original)
+++ webservices/axis2/trunk/c/samples/client/echo/echo.c Wed Oct  4 21:26:01 2006
@@ -56,7 +56,9 @@
 
     /* Setup options */
     options = axis2_options_create(env);
-    AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);
+    /*AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);*/
+    AXIS2_OPTIONS_SET_TARGET_EPR(options, env, endpoint_ref);
+
     AXIS2_OPTIONS_SET_ACTION(options, env,
             "http://ws.apache.org/axis2/c/samples/echoString");
 
@@ -85,7 +87,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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/samples/client/notify/notify_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/notify/notify_client.c Wed Oct  4 21:26:01 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/samples/server/math/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/math/Makefile.am?view=diff&rev=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/samples/server/math/Makefile.am (original)
+++ webservices/axis2/trunk/c/samples/server/math/Makefile.am Wed Oct  4 21:26:01 2006
@@ -1,9 +1,9 @@
 prglibdir=$(prefix)/services/math
 samplesdir=$(prefix)/samples/server/math
 prglib_LTLIBRARIES = libmath.la
-samples_DATA=services.xml math.h math.c math_skeleton.c Makefile.am Makefile.in
-prglib_DATA=services.xml
-EXTRA_DIST = services.xml
+samples_DATA=services.xml math.wsdl math.h math.c math_skeleton.c Makefile.am Makefile.in
+prglib_DATA=services.xml math.wsdl
+EXTRA_DIST = services.xml math.wsdl
 noinst_HEADERS = math.h
 SUBDIRS =
 libmath_la_SOURCES = math.c math_skeleton.c

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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_error.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_error.h Wed Oct  4 21:26:01 2006
@@ -88,6 +88,10 @@
         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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_string.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_string.h Wed Oct  4 21:26:01 2006
@@ -105,7 +105,7 @@
     /**
      * Concatenate multiple strings, allocating memory
      * @param ... The strings to concatenate.  The final string must be NULL
-     * @return The new string
+     * @return Null terminated 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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_utils_defines.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_utils_defines.h Wed Oct  4 21:26:01 2006
@@ -166,6 +166,11 @@
     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=453105&r1=453104&r2=453105
==============================================================================
--- webservices/axis2/trunk/c/util/src/error.c (original)
+++ webservices/axis2/trunk/c/util/src/error.c Wed Oct  4 21:26:01 2006
@@ -67,6 +67,10 @@
         "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