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 ru...@apache.org on 2001/05/03 03:02:49 UTC

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

rubys       01/05/02 18:02:49

  Modified:    java/src/org/apache/axis/transport/http
                        SimpleAxisServer.java
  Log:
  Performance improvements and a bug fix
  
  Revision  Changes    Path
  1.2       +4 -3      xml-axis/java/src/org/apache/axis/transport/http/SimpleAxisServer.java
  
  Index: SimpleAxisServer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/SimpleAxisServer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleAxisServer.java	2001/05/02 18:57:24	1.1
  +++ SimpleAxisServer.java	2001/05/03 01:02:49	1.2
  @@ -158,10 +158,11 @@
                       is.setContentLength(contentLength);
   
                       // set up request
  +                    String soapActionString = soapAction.toString();
                       requestMsg.setCurrentMessage(is, "InputStream");
  -                    msgContext.setTargetService(soapAction.toString());
  +                    msgContext.setTargetService(soapActionString);
                       msgContext.setProperty(HTTPConstants.MC_HTTP_SOAPACTION, 
  -                                           soapAction.toString());
  +                                           soapActionString);
   
                       // invoke the Axis engine
                       engine.invoke(msgContext);
  @@ -282,10 +283,10 @@
                           break;
                       }
                   } else if (c==actionHeader[actionMatch]) {
  -                    soapAction.delete(0,soapAction.length());
                       lenMatch=0;
                       actionMatch++;
                       if (actionMatch == actionLen) {
  +                        soapAction.delete(0,soapAction.length());
                           while ((++i<n) && (buf[i]!='"') && (buf[i]!='9')) {
                               soapAction.append((char)(buf[i] & 0x7f));
                           }