File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ public void marshalWithSoapActionHeader(MyObject o) {
308308
309309 webServiceTemplate.marshalSendAndReceive(o, new WebServiceMessageCallback() {
310310
311- public void doInMessage (WebServiceMessage message) {
311+ public void doWithMessage (WebServiceMessage message) {
312312 ((SoapMessage)message).setSoapAction("http://tempuri.org/Action");
313313 }
314314 });
@@ -332,16 +332,15 @@ public void marshalWithSoapActionHeader(MyObject o) {
332332public void marshalWithSoapActionHeader(final Source s) {
333333 final Transformer transformer = transformerFactory.newTransformer();
334334 webServiceTemplate.sendAndReceive(new WebServiceMessageCallback() {
335-
336- public void doInMessage(WebServiceMessage message) {
335+ public void doWithMessage(WebServiceMessage message) {
337336 transformer.transform(s, message.getPayloadResult());
338- }, new WebServiceMessageExtractor() {
339-
340- public Object extractData(WebServiceMessage message) throws IOException
341- ]]> <lineannotation >// do your own transforms with message.getPayloadResult()</lineannotation ><![CDATA[
342- ]]> <lineannotation >// or message.getPayloadSource()</lineannotation ><![CDATA[
343- }
344- });
337+ },
338+ new WebServiceMessageExtractor() {
339+ public Object extractData(WebServiceMessage message) throws IOException
340+ ]]> <lineannotation >// do your own transforms with message.getPayloadResult()</lineannotation ><![CDATA[
341+ ]]> <lineannotation >// or message.getPayloadSource()</lineannotation ><![CDATA[
342+ }
343+ });
345344}]]> </programlisting >
346345 </section >
347346 </section >
You can’t perform that action at this time.
0 commit comments