axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/transport/local LocalSender.java
Date Wed, 12 Dec 2001 18:17:53 GMT
dims        01/12/12 10:17:53

  Modified:    java/src/org/apache/axis/client Call.java
               java/src/org/apache/axis/handlers DebugHandler.java
                        EchoHandler.java SimpleSessionHandler.java
               java/src/org/apache/axis/handlers/soap SOAPService.java
               java/src/org/apache/axis/providers/java JavaProvider.java
               java/src/org/apache/axis/server AxisServer.java
               java/src/org/apache/axis/transport/http AxisServlet.java
                        HTTPSender.java
               java/src/org/apache/axis/transport/local LocalSender.java
  Log:
  - Replace getSOAPPart().getAsSOAPEnvelope() with getSOAPEnvelope().
  
  Revision  Changes    Path
  1.52      +4 -4      xml-axis/java/src/org/apache/axis/client/Call.java
  
  Index: Call.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Call.java,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- Call.java	2001/12/03 23:53:12	1.51
  +++ Call.java	2001/12/12 18:17:52	1.52
  @@ -661,7 +661,7 @@
               if (msg == null)
                   throw new AxisFault(JavaUtils.getMessage("nullResponse00"));
   
  -            env = msg.getSOAPPart().getAsSOAPEnvelope();
  +            env = msg.getSOAPEnvelope();
               return( env.getBodyElements() );
           }
   
  @@ -732,7 +732,7 @@
               msg = msgContext.getResponseMessage();
               if (msg == null)
                   throw new AxisFault(JavaUtils.getMessage("nullResponse00"));
  -            return( msg.getSOAPPart().getAsSOAPEnvelope() );
  +            return( msg.getSOAPEnvelope() );
           }
           catch( Exception exp ) {
               if ( exp instanceof AxisFault ) throw (AxisFault) exp ;
  @@ -1118,7 +1118,7 @@
           }
   
           resMsg = msgContext.getResponseMessage();
  -        resEnv = (SOAPEnvelope)resMsg.getSOAPPart().getAsSOAPEnvelope();
  +        resEnv = (SOAPEnvelope)resMsg.getSOAPEnvelope();
           try {
               body = (RPCElement)resEnv.getFirstBody();
               resArgs = body.getParams();
  @@ -1213,7 +1213,7 @@
   
           // Determine client target service
           reqMsg = msgContext.getRequestMessage();
  -        reqEnv = reqMsg.getSOAPPart().getAsSOAPEnvelope();
  +        reqEnv = reqMsg.getSOAPEnvelope();
           SOAPBodyElement body = reqEnv.getFirstBody();
   
           if ( body.getPrefix() == null )       body.setPrefix( "m" );
  
  
  
  1.27      +1 -1      xml-axis/java/src/org/apache/axis/handlers/DebugHandler.java
  
  Index: DebugHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/DebugHandler.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- DebugHandler.java	2001/12/03 22:49:23	1.26
  +++ DebugHandler.java	2001/12/12 18:17:52	1.27
  @@ -78,7 +78,7 @@
           try {
               Message       msg = msgContext.getRequestMessage();
   
  -            SOAPEnvelope message = (SOAPEnvelope)msg.getSOAPPart().getAsSOAPEnvelope();
  +            SOAPEnvelope message = (SOAPEnvelope)msg.getSOAPEnvelope();
               SOAPHeader header = message.getHeaderByName(Constants.URI_DEBUG,
                                                           "Debug");
   
  
  
  
  1.25      +1 -1      xml-axis/java/src/org/apache/axis/handlers/EchoHandler.java
  
  Index: EchoHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/EchoHandler.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- EchoHandler.java	2001/12/03 22:49:23	1.24
  +++ EchoHandler.java	2001/12/12 18:17:52	1.25
  @@ -74,7 +74,7 @@
           category.debug(JavaUtils.getMessage("enter00", "EchoHandler::invoke") );
           try {
               Message  msg = msgContext.getRequestMessage();
  -            SOAPEnvelope env = (SOAPEnvelope) msg.getSOAPPart().getAsSOAPEnvelope();
  +            SOAPEnvelope env = (SOAPEnvelope) msg.getSOAPEnvelope();
               msgContext.setResponseMessage( new Message( env ) );
           }
           catch( Exception e ) {
  
  
  
  1.10      +4 -4      xml-axis/java/src/org/apache/axis/handlers/SimpleSessionHandler.java
  
  Index: SimpleSessionHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/SimpleSessionHandler.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SimpleSessionHandler.java	2001/12/03 22:49:23	1.9
  +++ SimpleSessionHandler.java	2001/12/12 18:17:52	1.10
  @@ -189,7 +189,7 @@
               Message msg = context.getResponseMessage();
               if (msg == null)
                   return;
  -            SOAPEnvelope env = msg.getSOAPPart().getAsSOAPEnvelope();
  +            SOAPEnvelope env = msg.getSOAPEnvelope();
               SOAPHeader header = env.getHeaderByName(SESSION_NS,
                                                       SESSION_LOCALPART);
               if (header == null)
  @@ -216,7 +216,7 @@
               if (msg == null)
                   throw new AxisFault(JavaUtils.getMessage("noRequest00"));
               
  -            SOAPEnvelope env = msg.getSOAPPart().getAsSOAPEnvelope();
  +            SOAPEnvelope env = msg.getSOAPEnvelope();
               SOAPHeader header = new SOAPHeader(SESSION_NS,
                                                  SESSION_LOCALPART,
                                                  id);
  @@ -239,7 +239,7 @@
               Message msg = context.getResponseMessage();
               if (msg == null)
                   return;
  -            SOAPEnvelope env = msg.getSOAPPart().getAsSOAPEnvelope();
  +            SOAPEnvelope env = msg.getSOAPEnvelope();
               SOAPHeader header = new SOAPHeader(SESSION_NS,
                                                  SESSION_LOCALPART,
                                                  id);
  @@ -250,7 +250,7 @@
               if (msg == null)
                   throw new AxisFault(JavaUtils.getMessage("noRequest00"));
               
  -            SOAPEnvelope env = msg.getSOAPPart().getAsSOAPEnvelope();
  +            SOAPEnvelope env = msg.getSOAPEnvelope();
               SOAPHeader header = env.getHeaderByName(SESSION_NS,
                                                       SESSION_LOCALPART);
               Long id;
  
  
  
  1.37      +2 -2      xml-axis/java/src/org/apache/axis/handlers/soap/SOAPService.java
  
  Index: SOAPService.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/soap/SOAPService.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- SOAPService.java	2001/11/27 04:18:52	1.36
  +++ SOAPService.java	2001/12/12 18:17:52	1.37
  @@ -197,7 +197,7 @@
           }
           
           // 1. Check mustUnderstands
  -        SOAPEnvelope env = msgContext.getRequestMessage().getSOAPPart().getAsSOAPEnvelope();
  +        SOAPEnvelope env = msgContext.getRequestMessage().getSOAPEnvelope();
           Vector headers = env.getHeaders();
           Vector misunderstoodHeaders = null;
           Enumeration enum = headers.elements();
  @@ -222,7 +222,7 @@
                       respMsg = new Message(new SOAPEnvelope());
                       msgContext.setResponseMessage(respMsg);
                   }
  -                env = respMsg.getSOAPPart().getAsSOAPEnvelope();
  +                env = respMsg.getSOAPEnvelope();
                   enum = misunderstoodHeaders.elements();
                   while (enum.hasMoreElements()) {
                       SOAPHeader badHeader = (SOAPHeader)enum.nextElement();
  
  
  
  1.30      +2 -2      xml-axis/java/src/org/apache/axis/providers/java/JavaProvider.java
  
  Index: JavaProvider.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/providers/java/JavaProvider.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- JavaProvider.java	2001/12/11 19:47:00	1.29
  +++ JavaProvider.java	2001/12/12 18:17:52	1.30
  @@ -219,11 +219,11 @@
               JavaClass jc	  = JavaClass.find(obj.getClass());
   
               Message        reqMsg  = msgContext.getRequestMessage();
  -            SOAPEnvelope   reqEnv  = (SOAPEnvelope)reqMsg.getSOAPPart().getAsSOAPEnvelope();
  +            SOAPEnvelope   reqEnv  = (SOAPEnvelope)reqMsg.getSOAPEnvelope();
               Message        resMsg  = msgContext.getResponseMessage();
               SOAPEnvelope   resEnv  = (resMsg == null) ?
                                        new SOAPEnvelope() :
  -                                     (SOAPEnvelope)resMsg.getSOAPPart().getAsSOAPEnvelope();
  +                                     (SOAPEnvelope)resMsg.getSOAPEnvelope();
   
               // get the response message again! It may have been explicitly set!
               // (by, say, a proxy service :-) -- RobJ
  
  
  
  1.53      +2 -2      xml-axis/java/src/org/apache/axis/server/AxisServer.java
  
  Index: AxisServer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/server/AxisServer.java,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- AxisServer.java	2001/12/07 20:11:34	1.52
  +++ AxisServer.java	2001/12/12 18:17:52	1.53
  @@ -276,7 +276,7 @@
                       // some kind of declarative "parse point" on the handler
                       // chain instead....
                       Message rm = msgContext.getRequestMessage();
  -                    rm.getSOAPPart().getAsSOAPEnvelope().getFirstBody();
  +                    rm.getSOAPEnvelope().getFirstBody();
                       h = msgContext.getServiceHandler();
                       if (h == null)
                           throw new AxisFault("Server.NoService",
  @@ -425,7 +425,7 @@
                       // chain instead....
                       Message rm = msgContext.getRequestMessage();
                       if (rm != null) {
  -                        rm.getSOAPPart().getAsSOAPEnvelope().getFirstBody();
  +                        rm.getSOAPEnvelope().getFirstBody();
                           h = msgContext.getServiceHandler();
                       }
                       if (h == null)
  
  
  
  1.70      +1 -1      xml-axis/java/src/org/apache/axis/transport/http/AxisServlet.java
  
  Index: AxisServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/AxisServlet.java,v
  retrieving revision 1.69
  retrieving revision 1.70
  diff -u -r1.69 -r1.70
  --- AxisServlet.java	2001/12/07 19:51:58	1.69
  +++ AxisServlet.java	2001/12/12 18:17:52	1.70
  @@ -505,7 +505,7 @@
                   msgContext.setResponseMessage(msg);
               } else {
                   try {
  -                    SOAPEnvelope env = msg.getSOAPPart().getAsSOAPEnvelope();
  +                    SOAPEnvelope env = msg.getSOAPEnvelope();
                       env.clearBody();
                       env.addBodyElement(new SOAPFaultElement((AxisFault)e));
                       msgContext.setResponseMessage(msg);
  
  
  
  1.44      +1 -1      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.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- HTTPSender.java	2001/12/12 01:28:28	1.43
  +++ HTTPSender.java	2001/12/12 18:17:52	1.44
  @@ -113,7 +113,7 @@
               String   action = msgContext.getStrProp(HTTPConstants.MC_HTTP_SOAPACTION);
               if (action == null) {
                   Message rm = msgContext.getRequestMessage();
  -                MessageElement body = rm.getSOAPPart().getAsSOAPEnvelope().getFirstBody();
  +                MessageElement body = rm.getSOAPEnvelope().getFirstBody();
                   action = body.getNamespaceURI();
                   if (action == null) action = "";
                   if (!action.endsWith("/")) action += "/";
  
  
  
  1.22      +1 -1      xml-axis/java/src/org/apache/axis/transport/local/LocalSender.java
  
  Index: LocalSender.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/local/LocalSender.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- LocalSender.java	2001/11/15 12:08:11	1.21
  +++ LocalSender.java	2001/12/12 18:17:52	1.22
  @@ -158,7 +158,7 @@
                   serverContext.setResponseMessage(respMsg);
               } else {
                   SOAPFaultElement faultEl = new SOAPFaultElement(fault);
  -                SOAPEnvelope env = respMsg.getSOAPPart().getAsSOAPEnvelope();
  +                SOAPEnvelope env = respMsg.getSOAPEnvelope();
                   env.clearBody();
                   env.addBodyElement(faultEl);
               }
  
  
  

Mime
View raw message