summaryrefslogtreecommitdiffstats
path: root/samples/codegen/databinding/Calculator/server/axis2_skel_Calculator.c
blob: 674c130a05ef5c3cce2d9feb97531524b79197b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/*
* 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_skel_Calculator.c
 *
 * This file was auto-generated from WSDL for "Calculator|http://localhost/axis/Calculator" service
 * by the Apache Axis2/C version: #axisVersion# #today#
 * axis2_skel_Calculator Axis2/C skeleton for the axisService
 */ 
    
#include "axis2_skel_Calculator.h"
    

/**
 * auto generated function definition signature
 * for "add|" operation.
 
 * @param add
 */ 
    adb_addResponse_t * axis2_skel_Calculator_add(const axutil_env_t * env,
                                                    adb_add_t * add) 
{
    adb_addResponse_t * add_res = NULL;
    int ret_val = 0;
    int val1 = 0;
    int val2 = 0;
    val1 = adb_add_get_arg_0_0(add, env);
    val2 = adb_add_get_arg_1_0(add, env);
    ret_val = val1 + val2;
    add_res = adb_addResponse_create(env);
    adb_addResponse_set_addReturn(add_res, env, ret_val);
    return add_res;
}



/**
 * auto generated function definition signature
 * for "div|" operation.
 
 * @param div
 */ 
    adb_divResponse_t * axis2_skel_Calculator_div(const axutil_env_t * env,
                                                    adb_div_t * div) 
{
    adb_divResponse_t * div_res = NULL;
    int ret_val = 0;
    int val1 = 0;
    int val2 = 0;
    val1 = adb_div_get_arg_0_3(div, env);
    val2 = adb_div_get_arg_1_3(div, env);
    ret_val = val1 / val2;
    div_res = adb_divResponse_create(env);
    adb_divResponse_set_divReturn(div_res, env, ret_val);
    return div_res;
}



/**
 * auto generated function definition signature
 * for "sub|" operation.
 
 * @param sub
 */ 
    adb_subResponse_t * axis2_skel_Calculator_sub(const axutil_env_t * env,
                                                    adb_sub_t * sub) 
{
    adb_subResponse_t * sub_res = NULL;
    int ret_val = 0;
    int val1 = 0;
    int val2 = 0;
    val1 = adb_sub_get_arg_0_1(sub, env);
    val2 = adb_sub_get_arg_1_1(sub, env);
    ret_val = val1 - val2;
    sub_res = adb_subResponse_create(env);
    adb_subResponse_set_subReturn(sub_res, env, ret_val);
    return sub_res;
}



/**
 * auto generated function definition signature
 * for "mul|" operation.
 
 * @param mul
 */ 
    adb_mulResponse_t * axis2_skel_Calculator_mul(const axutil_env_t * env,
                                                    adb_mul_t * mul) 
{
    adb_mulResponse_t * mul_res = NULL;
    int ret_val = 0;
    int val1 = 0;
    int val2 = 0;
    val1 = adb_mul_get_arg_0_2(mul, env);
    val2 = adb_mul_get_arg_1_2(mul, env);
    ret_val = val1 * val2;
    mul_res = adb_mulResponse_create(env);
    adb_mulResponse_set_mulReturn(mul_res, env, ret_val);
    return mul_res;
}