axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r372789 - in /webservices/axis2/trunk/c: ./ modules/core/clientapi/ test/ test/client/ test/client/echo/
Date Fri, 27 Jan 2006 08:58:40 GMT
Author: damitha
Date: Fri Jan 27 00:58:29 2006
New Revision: 372789

URL: http://svn.apache.org/viewcvs?rev=372789&view=rev
Log:
Added echo client stub sample

Added:
    webservices/axis2/trunk/c/test/client/
    webservices/axis2/trunk/c/test/client/Makefile.am
    webservices/axis2/trunk/c/test/client/echo/
    webservices/axis2/trunk/c/test/client/echo/Makefile.am
    webservices/axis2/trunk/c/test/client/echo/echo_client.c
    webservices/axis2/trunk/c/test/client/echo/echo_stub.c
    webservices/axis2/trunk/c/test/client/echo/echo_stub.h
Modified:
    webservices/axis2/trunk/c/configure.ac
    webservices/axis2/trunk/c/modules/core/clientapi/stub.c
    webservices/axis2/trunk/c/test/Makefile.am

Modified: webservices/axis2/trunk/c/configure.ac
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/configure.ac?rev=372789&r1=372788&r2=372789&view=diff
==============================================================================
--- webservices/axis2/trunk/c/configure.ac (original)
+++ webservices/axis2/trunk/c/configure.ac Fri Jan 27 00:58:29 2006
@@ -114,6 +114,8 @@
     test/server/Makefile \
     test/server/echo/Makefile \
     test/server/math/Makefile \
+    test/client/Makefile \
+    test/client/echo/Makefile \
     test/xml/Makefile \
     test/xml/om/Makefile \
     test/xml/soap/Makefile \

Modified: webservices/axis2/trunk/c/modules/core/clientapi/stub.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/clientapi/stub.c?rev=372789&r1=372788&r2=372789&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/stub.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/stub.c Fri Jan 27 00:58:29 2006
@@ -115,7 +115,7 @@
 }
 
 axis2_stub_t * AXIS2_CALL 
-axis2_stub_create_with_end_point_uri (axis2_env_t **env,
+axis2_stub_create_with_endpoint_uri (axis2_env_t **env,
                                         axis2_char_t *endpoint_uri)
 {
     axis2_stub_impl_t *stub_impl = NULL;

Modified: webservices/axis2/trunk/c/test/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/Makefile.am?rev=372789&r1=372788&r2=372789&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/Makefile.am (original)
+++ webservices/axis2/trunk/c/test/Makefile.am Fri Jan 27 00:58:29 2006
@@ -1 +1 @@
-SUBDIRS = util xml unit core server
+SUBDIRS = util xml unit core server client

Added: webservices/axis2/trunk/c/test/client/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/client/Makefile.am?rev=372789&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/client/Makefile.am (added)
+++ webservices/axis2/trunk/c/test/client/Makefile.am Fri Jan 27 00:58:29 2006
@@ -0,0 +1 @@
+SUBDIRS = echo

Added: webservices/axis2/trunk/c/test/client/echo/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/client/echo/Makefile.am?rev=372789&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/client/echo/Makefile.am (added)
+++ webservices/axis2/trunk/c/test/client/echo/Makefile.am Fri Jan 27 00:58:29 2006
@@ -0,0 +1,34 @@
+bin_PROGRAMS = echo
+echo_SOURCES = echo_stub.c \
+                echo_client.c
+
+echo_LDADD   =  -L$(AXIS2C_HOME)/lib \
+					-laxis2_util \
+                    -laxis2_context \
+                    -laxis2_description \
+                    -laxis2_deployment \
+                    -laxis2_phaseresolver \
+                    -laxis2_om \
+                    -laxis2_wsdl \
+                    -laxis2_engine \
+                    -laxis2_parser \
+                    -laxis2_addr \
+                    -laxis2_receivers \
+                    -laxis2_core_util \
+                    -laxis2_clientapi \
+                    -laxis2_soap \
+                    -L$(GUTHTHILA_LIB) $(GUTHTHILA_LIBNAME) \
+                    -L$(LIBXML2_LIB) $(LIBXML2_LIBNAME)
+
+INCLUDES = -I$(top_builddir)/include \
+            -I$(top_builddir)/modules/util \
+            -I$(top_builddir)/modules/core/description \
+            -I$(top_builddir)/modules/core/deployment \
+            -I$(top_builddir)/modules/wsdl \
+            -I$(top_builddir)/modules/core/transport \
+            -I$(top_builddir)/modules/platforms \
+            -I$(top_builddir)/modules/xml/parser \
+            -I$(top_builddir)/include
+
+
+

Added: webservices/axis2/trunk/c/test/client/echo/echo_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/client/echo/echo_client.c?rev=372789&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/client/echo/echo_client.c (added)
+++ webservices/axis2/trunk/c/test/client/echo/echo_client.c Fri Jan 27 00:58:29 2006
@@ -0,0 +1,6 @@
+#include "echo_stub.h"
+
+int main(void)
+{
+    return 0;
+}

Added: webservices/axis2/trunk/c/test/client/echo/echo_stub.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/client/echo/echo_stub.c?rev=372789&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/client/echo/echo_stub.c (added)
+++ webservices/axis2/trunk/c/test/client/echo/echo_stub.c Fri Jan 27 00:58:29 2006
@@ -0,0 +1,90 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * 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.
+ */
+ 
+#include "echo_stub.h"
+#include <axis2_om_node.h>
+
+/************************* Function prototypes ********************************/
+axis2_status_t AXIS2_CALL
+axis2_echo_stub_invoke_blocking(axis2_stub_t *echo_stub,
+                                axis2_env_t **env,
+                                axis2_msg_ctx_t *msg_ctx);
+
+axis2_status_t AXIS2_CALL
+axis2_echo_stub_echo(axis2_stub_t *echo_stub,
+                        axis2_env_t **env,
+                        axis2_om_node_t *node);
+
+/************************** End of function prototypes ************************/
+
+axis2_stub_t *AXIS2_CALL 
+axis2_echo_stub_create_with_endpoint_ref(axis2_env_t **env,
+                                            axis2_endpoint_ref_t *endpoint_ref)
+{
+    axis2_stub_t *stub = NULL;
+    
+	AXIS2_ENV_CHECK(env, NULL);
+	
+	stub = (axis2_stub_t *) axis2_stub_create_with_endpoint_ref(env, endpoint_ref);
+	if(NULL == stub)
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); 
+        return NULL;
+    }
+    
+    stub->ops->invoke_blocking = axis2_echo_stub_invoke_blocking;
+	
+	return stub;
+}
+
+axis2_stub_t *AXIS2_CALL 
+axis2_echo_stub_create_with_endpoint_uri(axis2_env_t **env,
+                                            axis2_char_t *endpoint_uri)
+{
+    axis2_stub_t *stub = NULL;
+    
+	AXIS2_ENV_CHECK(env, NULL);
+	
+	stub = (axis2_stub_t *) axis2_stub_create_with_endpoint_uri(env, endpoint_uri);
+	if(NULL == stub)
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE); 
+        return NULL;
+    }
+    
+    stub->ops->invoke_blocking = axis2_echo_stub_invoke_blocking;
+	
+	return stub;
+}
+
+/***************************Function implementation****************************/
+
+axis2_status_t AXIS2_CALL
+axis2_echo_stub_invoke_blocking(axis2_stub_t *echo_stub,
+                                axis2_env_t **env,
+                                axis2_msg_ctx_t *msg_ctx)
+{
+    return 0;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_echo_stub_echo(axis2_stub_t *echo_stub,
+                        axis2_env_t **env,
+                        axis2_om_node_t *node)
+{
+    return 0;
+}
+

Added: webservices/axis2/trunk/c/test/client/echo/echo_stub.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/client/echo/echo_stub.h?rev=372789&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/client/echo/echo_stub.h (added)
+++ webservices/axis2/trunk/c/test/client/echo/echo_stub.h Fri Jan 27 00:58:29 2006
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * 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.
+ */
+
+#ifndef AXIS2_ECHO_STUB_H
+#define AXIS2_ECHO_STUB_H
+
+/**
+ * @file axis2_echo_stub.h
+ * @brief echo stub interface
+ */
+
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+#include <axis2_stub.h>
+#include <axis2_endpoint_ref.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * Creates axis2_stub struct
+ * @param endpoint reference
+ * @return pointer to newly created axis2_stub struct
+ */
+AXIS2_DECLARE(axis2_stub_t *) 
+axis2_echo_stub_create_with_endpoint_ref(axis2_env_t **env,
+                                            axis2_endpoint_ref_t *endpoint_ref);
+
+/**
+ * Creates axis2_stub struct
+ * @param endpoint uri
+ * @return pointer to newly created axis2_stub struct
+ */
+AXIS2_DECLARE(axis2_stub_t *)
+axis2_echo_stub_create_with_endpoint_uri(axis2_env_t **env,
+                                            axis2_char_t *endpoint_uri);
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif  /* AXIS2_ECHO_STUB_H */



Mime
View raw message