diff --git a/core/src/main/java/org/springframework/ws/soap/axiom/AxiomSoapMessage.java b/core/src/main/java/org/springframework/ws/soap/axiom/AxiomSoapMessage.java
index 5939ee69..88e321c9 100644
--- a/core/src/main/java/org/springframework/ws/soap/axiom/AxiomSoapMessage.java
+++ b/core/src/main/java/org/springframework/ws/soap/axiom/AxiomSoapMessage.java
@@ -53,6 +53,8 @@ import org.springframework.ws.transport.TransportOutputStream;
*/
public class AxiomSoapMessage extends AbstractSoapMessage {
+ private static final String EMPTY_SOAP_ACTION = "\"\"";
+
private SOAPMessage axiomMessage;
private final SOAPFactory axiomFactory;
@@ -85,7 +87,7 @@ public class AxiomSoapMessage extends AbstractSoapMessage {
axiomMessage = axiomFactory.createSOAPMessage(soapEnvelope, soapEnvelope.getBuilder());
attachments = new Attachments();
this.payloadCaching = payloadCaching;
- soapAction = "\"\"";
+ soapAction = EMPTY_SOAP_ACTION;
}
/**
@@ -117,7 +119,7 @@ public class AxiomSoapMessage extends AbstractSoapMessage {
axiomFactory = (SOAPFactory) soapMessage.getSOAPEnvelope().getOMFactory();
this.attachments = attachments;
if (!StringUtils.hasLength(soapAction)) {
- soapAction = "\"\"";
+ soapAction = EMPTY_SOAP_ACTION;
}
this.soapAction = soapAction;
this.payloadCaching = payloadCaching;
@@ -128,10 +130,16 @@ public class AxiomSoapMessage extends AbstractSoapMessage {
return axiomMessage;
}
- /** Sets the AXIOM SOAPMessage that this AxiomSoapMessage is based on. */
+ /**
+ * Sets the AXIOM SOAPMessage that this AxiomSoapMessage is based on.
+ *