You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Tom Jordahl <to...@macromedia.com> on 2002/01/14 21:16:39 UTC
SOAPAction code
>From org.apache.axis.transport.http.HTTPSender.java, line 119:
// default SOAPAction to request namespaceURI/method
String action = msgContext.getStrProp(HTTPConstants.MC_HTTP_SOAPACTION);
if (action == null) {
Message rm = msgContext.getRequestMessage();
MessageElement body = rm.getSOAPEnvelope().getFirstBody();
action = body.getNamespaceURI();
if (action == null) action = "";
if (!action.endsWith("/")) action += "/";
action += body.getName();
}
When SOAPAction isn't set (or set to ""), we use "/foo", where foo is the body/operation name.
Since SOAP 1.2 is talking about getting rid of SOAPAction entirely, I think this is the wrong thing. Anyone know why Axis does this?
I would like to change this code to omit the SOAPAction header entirely if action == null.
--
Tom Jordahl
Macromedia Server Development