~ubuntu-branches/ubuntu/dapper/lasso/dapper

« back to all changes in this revision

Viewing changes to swig/Lasso-wsf-soap.i

  • Committer: Bazaar Package Importer
  • Author(s): Loic Pefferkorn
  • Date: 2005-11-25 19:20:59 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051125192059-m4894lhpynmkrmwr
Tags: 0.6.3-4ubuntu1
Resynchronise with Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: c; c-basic-offset: 8 -*-
 
2
 *
 
3
 * $Id: Lasso-wsf-soap.i,v 1.1 2005/08/29 12:54:28 nclapies Exp $
 
4
 *
 
5
 * SWIG bindings for Lasso Library
 
6
 *
 
7
 * Copyright (C) 2004, 2005 Entr'ouvert
 
8
 * http://lasso.entrouvert.org
 
9
 *
 
10
 * Authors: See AUTHORS file in top-level directory.
 
11
 *
 
12
 * This program is free software; you can redistribute it and/or modify
 
13
 * it under the terms of the GNU General Public License as published by
 
14
 * the Free Software Foundation; either version 2 of the License, or
 
15
 * (at your option) any later version.
 
16
 *
 
17
 * This program is distributed in the hope that it will be useful,
 
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
 * GNU General Public License for more details.
 
21
 *
 
22
 * You should have received a copy of the GNU General Public License
 
23
 * along with this program; if not, write to the Free Software
 
24
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
25
 */
 
26
 
 
27
 %{
 
28
#include <lasso/xml/wsse_security.h>
 
29
#include <lasso/xml/soap_body.h>
 
30
#include <lasso/xml/soap_envelope.h>
 
31
#include <lasso/xml/soap_header.h>
 
32
#include <lasso/xml/soap_binding_correlation.h>
 
33
#include <lasso/xml/soap_binding_provider.h>
 
34
%}
 
35
 
 
36
 
 
37
/***********************************************************************
 
38
 ***********************************************************************
 
39
 * XML Elements in Web Service Security Namespace
 
40
 ***********************************************************************
 
41
 ***********************************************************************/
 
42
 
 
43
 
 
44
/***********************************************************************
 
45
 * wsse:Security
 
46
 ***********************************************************************/
 
47
 
 
48
 
 
49
#ifndef SWIGPHP4
 
50
%rename(WsseSecurity) LassoWsseSecurity;
 
51
#endif
 
52
typedef struct {
 
53
        /* Attributes */
 
54
 
 
55
} LassoWsseSecurity;
 
56
%extend LassoWsseSecurity {
 
57
 
 
58
        %newobject any_get;
 
59
        LassoNodeList *any;
 
60
 
 
61
        /* Constructor, Destructor & Static Methods */
 
62
 
 
63
        LassoWsseSecurity();
 
64
 
 
65
        ~LassoWsseSecurity();
 
66
 
 
67
        /* Methods inherited from LassoNode */
 
68
 
 
69
        %newobject dump;
 
70
        char *dump();
 
71
}
 
72
 
 
73
%{
 
74
 
 
75
/* Constructors, destructors & static methods implementations */
 
76
 
 
77
#define new_LassoWsseSecurity lasso_wsse_security_new
 
78
#define delete_LassoWsseSecurity(self) lasso_node_destroy(LASSO_NODE(self))
 
79
 
 
80
/* Implementations of methods inherited from LassoNode */
 
81
 
 
82
#define LassoWsseSecurity_dump(self) lasso_node_dump(LASSO_NODE(self))
 
83
 
 
84
/* Attributes Implementations */
 
85
 
 
86
/* any */
 
87
#define LassoWsseSecurity_get_any(self) get_node_list((self)->any)
 
88
#define LassoWsseSecurity_any_get(self) get_node_list((self)->any)
 
89
#define LassoWsseSecurity_set_any(self, value) set_node_list(&(self)->any, (value))
 
90
#define LassoWsseSecurity_any_set(self, value) set_node_list(&(self)->any, (value))
 
91
 
 
92
%}
 
93
 
 
94
 
 
95
/***********************************************************************
 
96
 ***********************************************************************
 
97
 * XML Elements in soap-binding Namespace
 
98
 ***********************************************************************
 
99
 ***********************************************************************/
 
100
 
 
101
/***********************************************************************
 
102
 * soap-binding:Correlation
 
103
 ***********************************************************************/
 
104
 
 
105
#ifndef SWIGPHP4
 
106
%rename(SoapBindingCorrelation) LassoSoapBindingCorrelation;
 
107
#endif
 
108
typedef struct {
 
109
        /* Attributes */
 
110
#ifndef SWIGPHP4
 
111
        %rename(messageId) messageID;
 
112
#endif
 
113
        char *messageID;
 
114
 
 
115
#ifndef SWIGPHP4
 
116
        %rename(refToMessageId) refToMessageID;
 
117
#endif
 
118
        char *refToMessageID;
 
119
 
 
120
        char *timestamp;
 
121
 
 
122
} LassoSoapBindingCorrelation;
 
123
%extend LassoSoapBindingCorrelation {
 
124
        /* Attributes */
 
125
 
 
126
        /* Constructor, Destructor & Static Methods */
 
127
 
 
128
        LassoSoapBindingCorrelation(char *messageID, char *timestamp);
 
129
 
 
130
        ~LassoSoapBindingCorrelation();
 
131
 
 
132
        /* Methods inherited from LassoNode */
 
133
 
 
134
        %newobject dump;
 
135
        char *dump();
 
136
}
 
137
 
 
138
%{
 
139
 
 
140
/* Attributes Implementations */
 
141
 
 
142
/* Constructors, destructors & static methods implementations */
 
143
#define new_LassoSoapBindingCorrelation lasso_soap_binding_correlation_new
 
144
#define delete_LassoSoapBindingCorrelation(self) lasso_node_destroy(LASSO_NODE(self))
 
145
 
 
146
/* Implementations of methods inherited from LassoNode */
 
147
 
 
148
#define LassoSoapBindingCorrelation_dump(self) lasso_node_dump(LASSO_NODE(self))
 
149
 
 
150
%}
 
151
 
 
152
 
 
153
/***********************************************************************
 
154
 ***********************************************************************
 
155
 * XML Elements in soap-env Namespace
 
156
 ***********************************************************************
 
157
 ***********************************************************************/
 
158
 
 
159
/***********************************************************************
 
160
 * soap-env:Body
 
161
 ***********************************************************************/
 
162
 
 
163
#ifndef SWIGPHP4
 
164
%rename(SoapBody) LassoSoapBody;
 
165
#endif
 
166
typedef struct {
 
167
 
 
168
} LassoSoapBody;
 
169
%extend LassoSoapBody {
 
170
        /* Attributes */
 
171
 
 
172
        %newobject any_get;
 
173
        LassoNodeList *any;
 
174
 
 
175
        /* Constructor, Destructor & Static Methods */
 
176
 
 
177
        LassoSoapBody();
 
178
 
 
179
        ~LassoSoapBody();
 
180
 
 
181
        /* Methods inherited from LassoNode */
 
182
 
 
183
        %newobject dump;
 
184
        char *dump();
 
185
}
 
186
 
 
187
%{
 
188
 
 
189
/* Attributes Implementations */
 
190
 
 
191
/* any */
 
192
#define LassoSoapBody_get_any(self) get_node_list((self)->any)
 
193
#define LassoSoapBody_any_get(self) get_node_list((self)->any)
 
194
#define LassoSoapBody_set_any(self, value) set_node_list(&(self)->any, (value))
 
195
#define LassoSoapBody_any_set(self, value) set_node_list(&(self)->any, (value))
 
196
 
 
197
/* Constructors, destructors & static methods implementations */
 
198
#define new_LassoSoapBody lasso_soap_body_new
 
199
#define delete_LassoSoapBody(self) lasso_node_destroy(LASSO_NODE(self))
 
200
 
 
201
/* Implementations of methods inherited from LassoNode */
 
202
 
 
203
#define LassoSoapBody_dump(self) lasso_node_dump(LASSO_NODE(self))
 
204
 
 
205
%}
 
206
 
 
207
 
 
208
/***********************************************************************
 
209
 * soap-env:Envelope
 
210
 ***********************************************************************/
 
211
 
 
212
#ifndef SWIGPHP4
 
213
%rename(SoapEnvelope) LassoSoapEnvelope;
 
214
#endif
 
215
typedef struct {
 
216
 
 
217
} LassoSoapEnvelope;
 
218
%extend LassoSoapEnvelope {
 
219
        /* Attributes */
 
220
 
 
221
#ifndef SWIGPHP4
 
222
        %rename(header) Header;
 
223
#endif
 
224
        %newobject Header_get;
 
225
        LassoSoapHeader *Header;
 
226
 
 
227
#ifndef SWIGPHP4
 
228
        %rename(body) Body;
 
229
#endif
 
230
        %newobject Body_get;
 
231
        LassoSoapBody *Body;
 
232
 
 
233
        /* Constructor, Destructor & Static Methods */
 
234
 
 
235
        LassoSoapEnvelope(LassoSoapBody *body);
 
236
 
 
237
        ~LassoSoapEnvelope();
 
238
 
 
239
        /* Methods inherited from LassoNode */
 
240
 
 
241
        %newobject dump;
 
242
        char *dump();
 
243
}
 
244
 
 
245
%{
 
246
 
 
247
/* Attributes Implementations */
 
248
 
 
249
/* Header */
 
250
#define LassoSoapEnvelope_get_Header(self) get_node(self->Header)
 
251
#define LassoSoapEnvelope_Header_get(self) get_node(self->Header)
 
252
#define LassoSoapEnvelope_set_Header(self, value) set_node((gpointer *) &self->Header, (value))
 
253
#define LassoSoapEnvelope_Header_set(self, value) set_node((gpointer *) &self->Header, (value))
 
254
 
 
255
/* Body */
 
256
#define LassoSoapEnvelope_get_Body(self) get_node(self->Body)
 
257
#define LassoSoapEnvelope_Body_get(self) get_node(self->Body)
 
258
#define LassoSoapEnvelope_set_Body(self, value) set_node((gpointer *) &self->Body, (value))
 
259
#define LassoSoapEnvelope_Body_set(self, value) set_node((gpointer *) &self->Body, (value))
 
260
 
 
261
/* Constructors, destructors & static methods implementations */
 
262
#define new_LassoSoapEnvelope lasso_soap_envelope_new
 
263
#define delete_LassoSoapEnvelope(self) lasso_node_destroy(LASSO_NODE(self))
 
264
 
 
265
/* Implementations of methods inherited from LassoNode */
 
266
 
 
267
#define LassoSoapEnvelope_dump(self) lasso_node_dump(LASSO_NODE(self))
 
268
 
 
269
%}
 
270
 
 
271
/***********************************************************************
 
272
 * soap-env:Header
 
273
 ***********************************************************************/
 
274
 
 
275
#ifndef SWIGPHP4
 
276
%rename(SoapHeader) LassoSoapHeader;
 
277
#endif
 
278
typedef struct {
 
279
 
 
280
} LassoSoapHeader;
 
281
%extend LassoSoapHeader {
 
282
        /* Attributes */
 
283
 
 
284
#ifndef SWIGPHP4
 
285
        %rename(other) Other;
 
286
#endif
 
287
        %newobject Other_get;
 
288
        LassoNodeList *Other;
 
289
 
 
290
        /* Constructor, Destructor & Static Methods */
 
291
 
 
292
        LassoSoapHeader();
 
293
 
 
294
        ~LassoSoapHeader();
 
295
 
 
296
        void addOther(LassoNode *node) {
 
297
                if LASSO_IS_NODE(node) {
 
298
                        self->Other = g_list_append(self->Other, node);
 
299
                }
 
300
        }
 
301
 
 
302
        /* Methods inherited from LassoNode */
 
303
 
 
304
        %newobject dump;
 
305
        char *dump();
 
306
}
 
307
 
 
308
%{
 
309
 
 
310
/* Attributes Implementations */
 
311
 
 
312
/* Other */
 
313
#define LassoSoapHeader_get_Other(self) get_node_list((self)->Other)
 
314
#define LassoSoapHeader_Other_get(self) get_node_list((self)->Other)
 
315
#define LassoSoapHeader_set_Other(self, value) set_node_list(&(self)->Other, (value))
 
316
#define LassoSoapHeader_Other_set(self, value) set_node_list(&(self)->Other, (value))
 
317
 
 
318
/* Constructors, destructors & static methods implementations */
 
319
#define new_LassoSoapHeader lasso_soap_header_new
 
320
#define delete_LassoSoapHeader(self) lasso_node_destroy(LASSO_NODE(self))
 
321
 
 
322
/* Implementations of methods inherited from LassoNode */
 
323
 
 
324
#define LassoSoapHeader_dump(self) lasso_node_dump(LASSO_NODE(self))
 
325
 
 
326
%}