summaryrefslogtreecommitdiffstats
path: root/samples/codegen/server/interop_doc2
diff options
context:
space:
mode:
Diffstat (limited to 'samples/codegen/server/interop_doc2')
-rw-r--r--samples/codegen/server/interop_doc2/Makefile.am16
-rw-r--r--samples/codegen/server/interop_doc2/axis2_skel_WSDLInteropTestDocLitService.c139
-rw-r--r--samples/codegen/server/interop_doc2/readme10
3 files changed, 165 insertions, 0 deletions
diff --git a/samples/codegen/server/interop_doc2/Makefile.am b/samples/codegen/server/interop_doc2/Makefile.am
new file mode 100644
index 0000000..7b46d88
--- /dev/null
+++ b/samples/codegen/server/interop_doc2/Makefile.am
@@ -0,0 +1,16 @@
+prglibdir=$(prefix)/services/interop_doc2
+samplesdir=$(prefix)/samples/server/interop_doc2
+prglib_LTLIBRARIES = libWSDLInteropTestDocLitService.la
+prglib_DATA= services.xml
+EXTRA_DIST = services.xml
+SUBDIRS =
+libWSDLInteropTestDocLitService_la_SOURCES = \
+axis2_ArrayOfstring_literal.c axis2_echoStringResponse.c axis2_echoVoidResponse.c \
+axis2_echoStringArray.c axis2_echoStruct.c axis2_SOAPStruct.c \
+axis2_echoStringArrayResponse.c axis2_echoStructResponse.c axis2_WSDLInteropTestDocLitService.c \
+axis2_echoString.c axis2_echoVoid.c axis2_WSDLInteropTestDocLitService_svc_skeleton.c
+
+libWSDLInteropTestDocLitService_la_LIBADD =
+INCLUDES = -I$(AXIS2C_HOME)/include \
+ @UTILINC@ \
+ @AXIOMINC@
diff --git a/samples/codegen/server/interop_doc2/axis2_skel_WSDLInteropTestDocLitService.c b/samples/codegen/server/interop_doc2/axis2_skel_WSDLInteropTestDocLitService.c
new file mode 100644
index 0000000..f6b818a
--- /dev/null
+++ b/samples/codegen/server/interop_doc2/axis2_skel_WSDLInteropTestDocLitService.c
@@ -0,0 +1,139 @@
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * axis2_WSDLInteropTestDocLitService.c
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2/Java version: #axisVersion# #today#
+ * axis2_WSDLInteropTestDocLitService Axis2/C skeleton for the axisService
+ */
+
+#include "axis2_WSDLInteropTestDocLitService.h"
+
+/**
+ * Auto generated function definition
+
+ * @param param0
+
+ */
+axis2_echoVoidResponse_t *
+axis2_WSDLInteropTestDocLitService_echoVoid(
+ const axutil_env_t * env,
+ axis2_echoVoid_t * param0)
+{
+ /* Todo fill this with the necessary business logic */
+ return NULL;
+}
+
+/**
+ * Auto generated function definition
+
+ * @param param2
+
+ */
+axis2_echoStringArrayResponse_t *
+axis2_WSDLInteropTestDocLitService_echoStringArray(
+ const axutil_env_t * env,
+ axis2_echoStringArray_t * param2)
+{
+ /* Todo fill this with the necessary business logic */
+ axis2_echoStringArray_t *echo_in = param2;
+ axis2_echoStringArrayResponse_t *echo_out = NULL;
+ axis2_ArrayOfstring_literal_t *array_in = NULL;
+ axis2_ArrayOfstring_literal_t *array_out = NULL;
+ char **string_array = NULL;
+ int string_array_length = 0;
+
+ array_in = AXIS2_ECHOSTRINGARRAY_GET_PARAM0(echo_in, env);
+ string_array = AXIS2_ARRAYOFSTRING_LITERAL_GET_STRING(array_in, env,
+ &string_array_length);
+
+ array_out = axis2_ArrayOfstring_literal_create(env);
+ AXIS2_ARRAYOFSTRING_LITERAL_SET_STRING(array_out, env,
+ string_array, string_array_length);
+ echo_out = axis2_echoStringArrayResponse_create(env);
+
+ AXIS2_ECHOSTRINGARRAYRESPONSE_SET_RETURN(echo_out, env, array_out);
+
+ return echo_out;
+
+}
+
+/**
+ * Auto generated function definition
+
+ * @param param4
+
+ */
+axis2_echoStructResponse_t *
+axis2_WSDLInteropTestDocLitService_echoStruct(
+ const axutil_env_t * env,
+ axis2_echoStruct_t * param4)
+{
+ /* Todo fill this with the necessary business logic */
+ axis2_echoStruct_t *echo_in = param4;
+ axis2_echoStructResponse_t *echo_out = NULL;
+ axis2_SOAPStruct_t *struct_in = NULL;
+ axis2_SOAPStruct_t *struct_out = NULL;
+
+ float float_val = 0;
+ int int_val = 0;
+ char *string_val = NULL;
+
+ struct_in = AXIS2_ECHOSTRUCT_GET_PARAM0(echo_in, env);
+
+ float_val = AXIS2_SOAPSTRUCT_GET_VARFLOAT(struct_in, env);
+ int_val = AXIS2_SOAPSTRUCT_GET_VARINT(struct_in, env);
+ string_val = AXIS2_SOAPSTRUCT_GET_VARSTRING(struct_in, env);
+
+ struct_out = axis2_SOAPStruct_create(env);
+ AXIS2_SOAPSTRUCT_SET_VARFLOAT(struct_out, env, float_val);
+ AXIS2_SOAPSTRUCT_SET_VARINT(struct_out, env, int_val);
+ AXIS2_SOAPSTRUCT_SET_VARSTRING(struct_out, env, string_val);
+
+ echo_out = axis2_echoStructResponse_create(env);
+ AXIS2_ECHOSTRUCTRESPONSE_SET_RETURN(echo_out, env, struct_out);
+
+ return echo_out;
+}
+
+/**
+ * Auto generated function definition
+
+ * @param param6
+
+ */
+axis2_echoStringResponse_t *
+axis2_WSDLInteropTestDocLitService_echoString(
+ const axutil_env_t * env,
+ axis2_echoString_t * param6)
+{
+ /* Todo fill this with the necessary business logic */
+ axis2_echoString_t *echo_in = param6;
+ axis2_echoStringResponse_t *echo_out = NULL;
+
+ char *echo_string = NULL;
+
+ echo_string = AXIS2_ECHOSTRING_GET_PARAM0(echo_in, env);
+
+ echo_out = axis2_echoStringResponse_create(env);
+ AXIS2_ECHOSTRUCTRESPONSE_SET_RETURN(echo_out, env, echo_string);
+
+ return echo_out;
+}
diff --git a/samples/codegen/server/interop_doc2/readme b/samples/codegen/server/interop_doc2/readme
new file mode 100644
index 0000000..51f3c59
--- /dev/null
+++ b/samples/codegen/server/interop_doc2/readme
@@ -0,0 +1,10 @@
+This sample demonstrates the use of code generation using Axis2/Java WSDL2Java
+tool (Axis2/Java source revision 414253).
+
+wsdl $AXIS2C_HOME/test/resources/wsdl/interoptestdoclitparameters.wsdl
+
+Command to execute the code generation:
+WSDL2C.sh -uri Calculator.wsdl -u -d adb -ss
+WSDL2C.bat -uri Calculator.wsdl -u -d adb -ss
+
+Please check the instruction of $AXIS2C_SRC_HOME/c/tools/codegen/javatool/README.txt