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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
/**
* 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 "div|http://localhost/axis/Calculator" operation.
* @param div
*/
adb_divResponse_t* axis2_skel_Calculator_div (const axutil_env_t *env,
adb_div_t *_div1)
{
adb_divResponse_t *_divresponse2;
int int_2;
int int_0;
int int_1;
/* Extract the request */
int_0 = adb_div_get_in0(_div1, env);
printf("Returned int: %d\n", int_0);
int_1 = adb_div_get_in1(_div1, env);
printf("Returned int: %d\n", int_1);
/* Build the response adb */
_divresponse2 = adb_divResponse_create(env);
int_2 = int_0 / int_1;
adb_divResponse_set_divReturn(_divresponse2, env, int_2);
return _divresponse2;
}
/**
* auto generated function definition signature
* for "mul|http://localhost/axis/Calculator" operation.
* @param mul
*/
adb_mulResponse_t* axis2_skel_Calculator_mul (const axutil_env_t *env,
adb_mul_t *_mul1)
{
adb_mulResponse_t *_mulresponse2;
int int_5;
int int_3;
int int_4;
/* Extract the request */
int_3 = adb_mul_get_in0(_mul1, env);
printf("Returned int: %d\n", int_3);
int_4 = adb_mul_get_in1(_mul1, env);
printf("Returned int: %d\n", int_4);
/* Build the response adb */
_mulresponse2 = adb_mulResponse_create(env);
int_5 = int_3 * int_4;
adb_mulResponse_set_mulReturn(_mulresponse2, env, int_5);
return _mulresponse2;
}
/**
* auto generated function definition signature
* for "add|http://localhost/axis/Calculator" operation.
* @param add
*/
adb_addResponse_t* axis2_skel_Calculator_add (const axutil_env_t *env,
adb_add_t *_add1)
{
adb_addResponse_t *_addresponse2;
int int_8;
int int_6;
int int_7;
/* Extract the request */
int_6 = adb_add_get_in0(_add1, env);
printf("Returned int: %d\n", int_6);
int_7 = adb_add_get_in1(_add1, env);
printf("Returned int: %d\n", int_7);
/* Build the response adb */
_addresponse2 = adb_addResponse_create(env);
int_8 = int_6 + int_7;
adb_addResponse_set_addReturn(_addresponse2, env, int_8);
return _addresponse2;
}
/**
* auto generated function definition signature
* for "sub|http://localhost/axis/Calculator" operation.
* @param sub
*/
adb_subResponse_t* axis2_skel_Calculator_sub (const axutil_env_t *env,
adb_sub_t *_sub1)
{
adb_subResponse_t *_subresponse2;
int int_11;
int int_9;
int int_10;
/* Extract the request */
int_9 = adb_sub_get_in0(_sub1, env);
printf("Returned int: %d\n", int_9);
int_10 = adb_sub_get_in1(_sub1, env);
printf("Returned int: %d\n", int_10);
/* Build the response adb */
_subresponse2 = adb_subResponse_create(env);
int_11 = int_9 - int_10;
adb_subResponse_set_subReturn(_subresponse2, env, int_11);
return _subresponse2;
}
|