-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGWSConstants.h
executable file
·245 lines (209 loc) · 9.41 KB
/
GWSConstants.h
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
/**
Copyright (C) 2008 Free Software Foundation, Inc.
Written by: Richard Frith-Macdonald <[email protected]>
Date: January 2008
This file is part of the WebServices Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
$Date: 2007-09-14 13:54:55 +0100 (Fri, 14 Sep 2007) $ $Revision: 25485 $
*/
#ifndef INCLUDED_GWSCONSTANTS_H
#define INCLUDED_GWSCONSTANTS_H
#import <Foundation/NSString.h>
#if defined(__cplusplus)
extern "C" {
#endif
/** Key for a local error returned in a result dictionary.<br />
* If an error occurred at the local end while producing the result
* dictionary, the value for this key (and NSError, NSException, or NSString)
* will describe the nature of the problem.
*/
extern NSString * const GWSErrorKey;
/** Key for a fault dictionary returned in a response dictionary.<br />
* The value for this key is nil unless a wsdl <em>fault</em>
* was decoded into the dictionary.
*/
extern NSString * const GWSFaultKey;
/** Key for the method name in a request dictionary.<br />
* The value of this key is nil unless the dictionary was the result of
* decoding a request, in which case it is the name of the method/operation
* requested.
*/
extern NSString * const GWSMethodKey;
/** Key for an ordering array in a request or response dictionary.<br />
* If present in a decoded object, the value of this key is an
* NSMutableArray object containing the names of the parameters decoded.<br />
* If present in a dictionary being encoded, this is an NSArray object
* specifying the order in which the members of the dictionary are to be
* encoded.
*/
extern NSString * const GWSOrderKey;
/** Key for a parameters dictionary in a request or response dictionary.<br />
* If present, the value of this key is an NSMutableDictionary containing
* the decoded parameters.
*/
extern NSString * const GWSParametersKey;
/** Key for the data sent to a remote system to perform a GWSService RPC
* operation.<br />
* This is present if debug was enabled for the service,
* but is omitted otherwise.
*/
extern NSString * const GWSRequestDataKey;
/** Key for the data from a remote system returned in a result
* of a GWSService RPC made to a web services server.<br />
* This is present if and debug was enabled
* for the service, but is omitted otherwise.
*/
extern NSString * const GWSResponseDataKey;
/** Key for protocol request/response ID information stored in an RPC.
*/
extern NSString * const GWSRPCIDKey;
/** Key for protocol version information stored in an RPC request
* or response.
*/
extern NSString * const GWSRPCVersionKey;
/** Key for the encoding style to be used for the SOAP body.<br />
* The value of this may be one of
* <list>
* <item><ref type="constant" id="GWSSOAPBodyEncodingStyleDocument">
* GWSSOAPBodyEncodingStyleDocument</ref></item>
* <item><ref type="constant" id="GWSSOAPBodyEncodingStyleRPC">
* GWSSOAPBodyEncodingStyleRPC</ref></item>
* <item><ref type="constant" id="GWSSOAPBodyEncodingStyleWrapped">
* GWSSOAPBodyEncodingStyleWrapped</ref></item>
* </list>
*/
extern NSString * const GWSSOAPBodyEncodingStyleKey;
/** This means that the SOAP body is encoded in document style.<br />
* Setting this value for the GWSSOAPBodyEncodingStyleKey in the
* parameters of a message being encoded has the same effect as
* calling [GWSSOAPCoder-setOperationStyle:]
* with an argument of GWSSOAPBodyEncodingStyleDocument.
*/
extern NSString * const GWSSOAPBodyEncodingStyleDocument;
/** This means that the SOAP body is encoded in RPC style.<br />
* Setting this value for the GWSSOAPBodyEncodingStyleKey in the
* parameters of a message being encoded has the same effect as
* calling [GWSSOAPCoder-setOperationStyle:]
* with an argument of GWSSOAPBodyEncodingStyleRPC.
*/
extern NSString * const GWSSOAPBodyEncodingStyleRPC;
/** This means that the SOAP body is encoded in wrapped style.<br />
* Setting this value for the GWSSOAPBodyEncodingStyleKey in the
* parameters of a message being encoded has the same effect as
* calling [GWSSOAPCoder-setOperationStyle:]
* with an argument of GWSSOAPBodyEncodingStyleWrapped.<br />
* NB. This encoding style is not yet implemented.
*/
extern NSString * const GWSSOAPBodyEncodingStyleWrapped;
/** Key for the 'use' style to be used for the SOAP Body, Header or Fault
* (depending on whether it is in the top level parameters dictionary or
* in the header parameters).<br />
* The value of this key may be 'literal' or 'encoded'.
* <ref type="constant" id="GWSSOAPUseEncoded">GWSSOAPUseEncoded</ref> or
* <ref type="constant" id="GWSSOAPUseLiteral">GWSSOAPUseLiteral</ref>
*/
extern NSString * const GWSSOAPUseKey;
/** Constant 'encoded' for Body/Header use.<br />
* If data is 'encoded', each element of the data has a 'type' attribute
* which provides type information allowing the element contents to be
* be decoded.
*/
extern NSString * const GWSSOAPUseEncoded;
/** Constant 'literal' for Body/Header use.<br />
* If data is 'literal', the contents of elements are decoded by implicit
* type knowledge depending on the element name and its position within
* the XML document.
*/
extern NSString * const GWSSOAPUseLiteral;
/** Key for the header element for a soap message.<br />
* You usually do not need to create this directly.<br />
* This is a dictionary of message parts (like the parameters dictionary
* itsself) which is used to specify for the contents of the Header.<br />
* If you do not specify a value for this key, the coder will attempt to
* build a dictionary from any items in the parameters dictionary which
* are not used for the main message body.<br />
* If no value is set for this key (and the dictionary can't be built from
* headers present in the main parameters dictionary), the header element
* is omitted.
*/
extern NSString * const GWSSOAPMessageHeadersKey;
/** Key for the URI to be used as the default namespace for the
* current element (and all elements within it, unless overriden).<br />
* As a special case at the SOAP Body, Fault, or Header level,
* if this key is used in conjunction with the GWSSOAPNamespaceNameKey,
* a mapping is set up in the SOAP Envelope to match the name to the URI.
* This behavior is in addition to the normal behavior of setting the
* default namespace.
*/
extern NSString * const GWSSOAPNamespaceURIKey;
/** Key for the name to be used for the namespace of the current element
* (ie as the namespace prefix before the element name).<br />
* For instance.
* <example>
* foo = {
* GWSSOAPnamespaceNameKey = "xxx";
* };
* </example>
* means that the element is encoded as 'xxx:foo' rather than just 'foo'.<br />
* This has a special meaning at the level of the SOAP Body, Fault, or
* Header dictionary. In these cases it does not set the namespace prefix
* for that element, but is instead used in conjunction with the
* GWSSOAPNamespaceURIKey to set up a namespace mapping in the SOAP Envelope.
*/
extern NSString * const GWSSOAPNamespaceNameKey;
/** If this key is present in a dictionary describing a value
* (one with a GWSSOAPValueKey present) where the value is actually
* an array of values, then the array contents are encoded as an xsd
* style array of items inside this element rather than as a sequence
* of values of the same type. The value of this key is used as the
* name for the array item elements (if the value is not a legal element
* name then the string 'item' is used).
* <example>
* foo = {
* GWSSOAPValueKey = ("hello", "there");
* GWSSOAPArrayKey = val;
* };
* </example>
* would encode '<foo><val>hello</val><val>there</val></foo>'
* rather than the normal '<foo>hello</foo><foo>there</foo>'
*/
extern NSString * const GWSSOAPArrayKey;
/** If this key is present in a dictionary describing a value
* (one with a GWSSOAPValueKey present) it is used to specify the type
* of the value, overriding any normal xsi:type=... setting inferred
* from the actual data type of the value.
*/
extern NSString * const GWSSOAPTypeKey;
/** If this key is present in a dictionary, then instead of treating the
* dictionary as a complex type, the value referenced by this key is
* encoded, and other values in the dictionary (eg. GWSSOAPNamespaceURIKey)
* are used to modify the encoding of that value.<br />
* eg.
* <example>
* foo = {
* GWSSOAPValueKey = "hello";
* GWSSOAPNamespaceURIKey = "http://foo/xxx.xsd";
* };
* </example>
* would encode '<foo "xmlns=http://foo/xxx.xsd">hello</foo>'.
*/
extern NSString * const GWSSOAPValueKey;
/* If this key is present as the sole item in a parameters dictionary
* used for building a JSON response, the value referred to by the key
* is used as the 'result' field of a JSONRPC response.
*/
extern NSString * const GWSJSONResultKey;
#if defined(__cplusplus)
}
#endif
#endif