@@ -34,6 +34,8 @@ public interface WebServiceOperations {
34
34
/**
35
35
* Sends a web service message that contains the given payload, marshalled by the configured
36
36
* <code>Marshaller</code>. Returns the unmarshalled payload of the response message, if any.
37
+ * <p/>
38
+ * This will only work with a default specified!
37
39
*
38
40
* @param requestPayload the object to marshal into the request message payload
39
41
* @return the unmarshalled payload of the response message, or <code>null</code> if no response is given
@@ -44,10 +46,27 @@ public interface WebServiceOperations {
44
46
*/
45
47
Object marshalSendAndReceive (Object requestPayload ) throws XmlMappingException , WebServiceClientException ;
46
48
49
+ /**
50
+ * Sends a web service message that contains the given payload, marshalled by the configured
51
+ * <code>Marshaller</code>. Returns the unmarshalled payload of the response message, if any.
52
+ *
53
+ * @param uri the URI to send the message to
54
+ * @param requestPayload the object to marshal into the request message payload
55
+ * @return the unmarshalled payload of the response message, or <code>null</code> if no response is given
56
+ * @throws XmlMappingException if there is a problem marshalling or unmarshalling
57
+ * @throws WebServiceClientException if there is a problem sending or receiving the message
58
+ * @see WebServiceTemplate#setMarshaller(org.springframework.oxm.Marshaller)
59
+ * @see WebServiceTemplate#setUnmarshaller(org.springframework.oxm.Unmarshaller)
60
+ */
61
+ Object marshalSendAndReceive (String uri , Object requestPayload )
62
+ throws XmlMappingException , WebServiceClientException ;
63
+
47
64
/**
48
65
* Sends a web service message that contains the given payload, marshalled by the configured
49
66
* <code>Marshaller</code>. Returns the unmarshalled payload of the response message, if any. The given callback
50
67
* allows changing of the request message after the payload has been marshalled to it.
68
+ * <p/>
69
+ * This will only work with a default specified!
51
70
*
52
71
* @param requestPayload the object to marshal into the request message payload
53
72
* @param requestCallback callback to change message, can be <code>null</code>
@@ -60,9 +79,28 @@ public interface WebServiceOperations {
60
79
Object marshalSendAndReceive (Object requestPayload , WebServiceMessageCallback requestCallback )
61
80
throws XmlMappingException , WebServiceClientException ;
62
81
82
+ /**
83
+ * Sends a web service message that contains the given payload, marshalled by the configured
84
+ * <code>Marshaller</code>. Returns the unmarshalled payload of the response message, if any. The given callback
85
+ * allows changing of the request message after the payload has been marshalled to it.
86
+ *
87
+ * @param uri the URI to send the message to
88
+ * @param requestPayload the object to marshal into the request message payload
89
+ * @param requestCallback callback to change message, can be <code>null</code>
90
+ * @return the unmarshalled payload of the response message, or <code>null</code> if no response is given
91
+ * @throws XmlMappingException if there is a problem marshalling or unmarshalling
92
+ * @throws WebServiceClientException if there is a problem sending or receiving the message
93
+ * @see WebServiceTemplate#setMarshaller(org.springframework.oxm.Marshaller)
94
+ * @see WebServiceTemplate#setUnmarshaller(org.springframework.oxm.Unmarshaller)
95
+ */
96
+ Object marshalSendAndReceive (String uri , Object requestPayload , WebServiceMessageCallback requestCallback )
97
+ throws XmlMappingException , WebServiceClientException ;
98
+
63
99
/**
64
100
* Sends a web service message that contains the given payload, reading the result with a
65
101
* <code>SourceExtractor</code>.
102
+ * <p/>
103
+ * This will only work with a default specified!
66
104
*
67
105
* @param requestPayload the payload of the request message
68
106
* @param responseExtractor object that will extract results
@@ -71,11 +109,26 @@ Object marshalSendAndReceive(Object requestPayload, WebServiceMessageCallback re
71
109
*/
72
110
Object sendAndReceive (Source requestPayload , SourceExtractor responseExtractor ) throws WebServiceClientException ;
73
111
112
+ /**
113
+ * Sends a web service message that contains the given payload, reading the result with a
114
+ * <code>SourceExtractor</code>.
115
+ *
116
+ * @param uri the URI to send the message to
117
+ * @param requestPayload the payload of the request message
118
+ * @param responseExtractor object that will extract results
119
+ * @return an arbitrary result object, as returned by the <code>SourceExtractor</code>
120
+ * @throws WebServiceClientException if there is a problem sending or receiving the message
121
+ */
122
+ Object sendAndReceive (String uri , Source requestPayload , SourceExtractor responseExtractor )
123
+ throws WebServiceClientException ;
124
+
74
125
/**
75
126
* Sends a web service message that contains the given payload, reading the result with a
76
127
* <code>SourceExtractor</code>.
77
128
* <p/>
78
129
* The given callback allows changing of the request message after the payload has been written to it.
130
+ * <p/>
131
+ * This will only work with a default specified!
79
132
*
80
133
* @param requestPayload the payload of the request message
81
134
* @param requestCallback callback to change message, can be <code>null</code>
@@ -87,21 +140,54 @@ Object sendAndReceive(Source requestPayload,
87
140
WebServiceMessageCallback requestCallback ,
88
141
SourceExtractor responseExtractor ) throws WebServiceClientException ;
89
142
143
+ /**
144
+ * Sends a web service message that contains the given payload, reading the result with a
145
+ * <code>SourceExtractor</code>.
146
+ * <p/>
147
+ * The given callback allows changing of the request message after the payload has been written to it.
148
+ *
149
+ * @param uri the URI to send the message to
150
+ * @param requestPayload the payload of the request message
151
+ * @param requestCallback callback to change message, can be <code>null</code>
152
+ * @param responseExtractor object that will extract results
153
+ * @return an arbitrary result object, as returned by the <code>SourceExtractor</code>
154
+ * @throws WebServiceClientException if there is a problem sending or receiving the message
155
+ */
156
+ Object sendAndReceive (String uri ,
157
+ Source requestPayload ,
158
+ WebServiceMessageCallback requestCallback ,
159
+ SourceExtractor responseExtractor ) throws WebServiceClientException ;
160
+
90
161
/**
91
162
* Sends a web service message that contains the given payload. Writes the response, if any, to the given
92
163
* <code>Result</code>.
164
+ * <p/>
165
+ * This will only work with a default specified!
93
166
*
94
167
* @param requestPayload the payload of the request message
95
168
* @param responseResult the result to write the response payload to
96
169
* @throws WebServiceClientException if there is a problem sending or receiving the message
97
170
*/
98
171
void sendAndReceive (Source requestPayload , Result responseResult ) throws WebServiceClientException ;
99
172
173
+ /**
174
+ * Sends a web service message that contains the given payload. Writes the response, if any, to the given
175
+ * <code>Result</code>.
176
+ *
177
+ * @param uri the URI to send the message to
178
+ * @param requestPayload the payload of the request message
179
+ * @param responseResult the result to write the response payload to
180
+ * @throws WebServiceClientException if there is a problem sending or receiving the message
181
+ */
182
+ void sendAndReceive (String uri , Source requestPayload , Result responseResult ) throws WebServiceClientException ;
183
+
100
184
/**
101
185
* Sends a web service message that contains the given payload. Writes the response, if any, to the given
102
186
* <code>Result</code>.
103
187
* <p/>
104
188
* The given callback allows changing of the request message after the payload has been written to it.
189
+ * <p/>
190
+ * This will only work with a default specified!
105
191
*
106
192
* @param requestPayload the payload of the request message
107
193
* @param requestCallback callback to change message, can be <code>null</code>
@@ -111,9 +197,28 @@ Object sendAndReceive(Source requestPayload,
111
197
void sendAndReceive (Source requestPayload , WebServiceMessageCallback requestCallback , Result responseResult )
112
198
throws WebServiceClientException ;
113
199
200
+ /**
201
+ * Sends a web service message that contains the given payload. Writes the response, if any, to the given
202
+ * <code>Result</code>.
203
+ * <p/>
204
+ * The given callback allows changing of the request message after the payload has been written to it.
205
+ *
206
+ * @param uri the URI to send the message to
207
+ * @param requestPayload the payload of the request message
208
+ * @param requestCallback callback to change message, can be <code>null</code>
209
+ * @param responseResult the result to write the response payload to
210
+ * @throws WebServiceClientException if there is a problem sending or receiving the message
211
+ */
212
+ void sendAndReceive (String uri ,
213
+ Source requestPayload ,
214
+ WebServiceMessageCallback requestCallback ,
215
+ Result responseResult ) throws WebServiceClientException ;
216
+
114
217
/**
115
218
* Sends a web service message that can be manipulated with the given callback, reading the result with a
116
219
* <code>WebServiceMessageExtractor</code>.
220
+ * <p/>
221
+ * This will only work with a default specified!
117
222
*
118
223
* @param requestCallback the requestCallback to be used for manipulating the request message
119
224
* @param responseExtractor object that will extract results
@@ -127,10 +232,39 @@ Object sendAndReceive(WebServiceMessageCallback requestCallback, WebServiceMessa
127
232
* Sends a web service message that can be manipulated with the given callback, reading the result with a
128
233
* <code>WebServiceMessageExtractor</code>.
129
234
*
235
+ * @param uri the URI to send the message to
236
+ * @param requestCallback the requestCallback to be used for manipulating the request message
237
+ * @param responseExtractor object that will extract results
238
+ * @return an arbitrary result object, as returned by the <code>WebServiceMessageExtractor</code>
239
+ * @throws WebServiceClientException if there is a problem sending or receiving the message
240
+ */
241
+ Object sendAndReceive (String uri ,
242
+ WebServiceMessageCallback requestCallback ,
243
+ WebServiceMessageExtractor responseExtractor ) throws WebServiceClientException ;
244
+
245
+ /**
246
+ * Sends a web service message that can be manipulated with the given callback, reading the result with a
247
+ * <code>WebServiceMessageExtractor</code>.
248
+ * <p/>
249
+ * This will only work with a default specified!
250
+ *
130
251
* @param requestCallback the callback to be used for manipulating the request message
131
252
* @param responseCallback the callback to be used for manipulating the response message
132
253
* @throws WebServiceClientException if there is a problem sending or receiving the message
133
254
*/
134
255
void sendAndReceive (WebServiceMessageCallback requestCallback , WebServiceMessageCallback responseCallback )
135
256
throws WebServiceClientException ;
257
+
258
+ /**
259
+ * Sends a web service message that can be manipulated with the given callback, reading the result with a
260
+ * <code>WebServiceMessageExtractor</code>.
261
+ *
262
+ * @param uri the URI to send the message to
263
+ * @param requestCallback the callback to be used for manipulating the request message
264
+ * @param responseCallback the callback to be used for manipulating the response message
265
+ * @throws WebServiceClientException if there is a problem sending or receiving the message
266
+ */
267
+ void sendAndReceive (String uri ,
268
+ WebServiceMessageCallback requestCallback ,
269
+ WebServiceMessageCallback responseCallback ) throws WebServiceClientException ;
136
270
}
0 commit comments