Spring Web Services Framework

org.springframework.ws.soap.client.core
Class SoapActionCallback

java.lang.Object
  extended by org.springframework.ws.soap.client.core.SoapActionCallback
All Implemented Interfaces:
WebServiceMessageCallback

public class SoapActionCallback
extends Object
implements WebServiceMessageCallback

WebServiceMessageCallback implementation that sets the SOAP Action header on the message.

A usage example with WebServiceTemplate:

 WebServiceTemplate template = new WebServiceTemplate(messageFactory);
 Result result = new DOMResult();
 template.sendSourceAndReceiveToResult(
     new StringSource("<content xmlns=\"http://tempuri.org\"/>"),
     new SoapActionCallback("http://tempuri.org/SOAPAction"),
     result);
 

Since:
1.0.0
Author:
Arjen Poutsma

Constructor Summary
SoapActionCallback(String soapAction)
          Create a new SoapActionCallback with the given string SOAPAction.
 
Method Summary
 void doWithMessage(WebServiceMessage message)
          Execute any number of operations on the supplied message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapActionCallback

public SoapActionCallback(String soapAction)
Create a new SoapActionCallback with the given string SOAPAction.

Method Detail

doWithMessage

public void doWithMessage(WebServiceMessage message)
                   throws IOException
Description copied from interface: WebServiceMessageCallback
Execute any number of operations on the supplied message.

Specified by:
doWithMessage in interface WebServiceMessageCallback
Parameters:
message - the message
Throws:
IOException - in case of I/O errors

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.