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 to...@apache.org on 2002/01/15 20:30:32 UTC

cvs commit: xml-axis/java/src/org/apache/axis/transport/http HTTPSender.java

tomj        02/01/15 11:30:31

  Modified:    java/src/org/apache/axis/transport/http HTTPSender.java
  Log:
  If their is no SOAPAction specified in the request, do not create one.
  Since SOAP 1.2 is depricating SOAPAction, we shouldn't just make one up.
  
  Revision  Changes    Path
  1.46      +4 -10     xml-axis/java/src/org/apache/axis/transport/http/HTTPSender.java
  
  Index: HTTPSender.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/HTTPSender.java,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- HTTPSender.java	10 Jan 2002 20:01:01 -0000	1.45
  +++ HTTPSender.java	15 Jan 2002 19:30:31 -0000	1.46
  @@ -111,14 +111,6 @@
   
               // 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();
  -            }
   
               host = tmpURL.getHost();
               if ( (port = tmpURL.getPort()) == -1 ) port = 80;
  @@ -364,11 +356,13 @@
                .append( ": " )
                .append( reqMessage.getContentType())
                .append( "\r\n" )
  -             .append( (otherHeaders == null ? "" : otherHeaders.toString()))
  -             .append( HTTPConstants.HEADER_SOAP_ACTION )
  +             .append( (otherHeaders == null ? "" : otherHeaders.toString()));
  +            if (action != null) {
  +             header.append( HTTPConstants.HEADER_SOAP_ACTION )
                .append( ": \"" )
                .append( action )
                .append( "\"\r\n");
  +            }
   
               header.append("\r\n");