axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r379194 - in /webservices/axis/trunk/java/src/org/apache/axis/wsa: MIHeader.java WSAHandler.java
Date Mon, 20 Feb 2006 18:36:08 GMT
Author: dug
Date: Mon Feb 20 10:36:05 2006
New Revision: 379194

URL: http://svn.apache.org/viewcvs?rev=379194&view=rev
Log:
Get TCK test working - who wudda thunk that calling
msg.getSOAPPart().getEnvelope() would be so different from calling
msg.getSOAPEnvelope()


Modified:
    webservices/axis/trunk/java/src/org/apache/axis/wsa/MIHeader.java
    webservices/axis/trunk/java/src/org/apache/axis/wsa/WSAHandler.java

Modified: webservices/axis/trunk/java/src/org/apache/axis/wsa/MIHeader.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/src/org/apache/axis/wsa/MIHeader.java?rev=379194&r1=379193&r2=379194&view=diff
==============================================================================
--- webservices/axis/trunk/java/src/org/apache/axis/wsa/MIHeader.java (original)
+++ webservices/axis/trunk/java/src/org/apache/axis/wsa/MIHeader.java Mon Feb 20 10:36:05
2006
@@ -119,7 +119,7 @@
        if ( msg == null ) return null ;
        mih = new MIHeader();
        mih.removeOnGet = false ;
-       mih.fromEnvelope( (SOAPEnvelope) msg.getSOAPPart().getEnvelope() );
+       mih.fromEnvelope( (SOAPEnvelope) msg.getSOAPEnvelope() );
        if ( mih.getTo() == null && mih.getFrom() == null) return null ;
        msgContext.setProperty( WSAConstants.REQ_MIH, mih );
      }
@@ -140,7 +140,7 @@
        if ( msg == null ) return null ;
        mih = new MIHeader();
        mih.removeOnGet = false ;
-       mih.fromEnvelope( (SOAPEnvelope) msg.getSOAPPart().getEnvelope() );
+       mih.fromEnvelope( (SOAPEnvelope) msg.getSOAPEnvelope() );
        if ( mih.getTo() == null && mih.getFrom() == null ) return null ;
        msgContext.setProperty(WSAConstants.RES_MIH, mih );
      }

Modified: webservices/axis/trunk/java/src/org/apache/axis/wsa/WSAHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/src/org/apache/axis/wsa/WSAHandler.java?rev=379194&r1=379193&r2=379194&view=diff
==============================================================================
--- webservices/axis/trunk/java/src/org/apache/axis/wsa/WSAHandler.java (original)
+++ webservices/axis/trunk/java/src/org/apache/axis/wsa/WSAHandler.java Mon Feb 20 10:36:05
2006
@@ -14,7 +14,7 @@
 
 public class WSAHandler { // extends BasicHandler {
 
-   public static void invoke(MessageContext msgContext) throws AxisFault {
+   public static void invoke(MessageContext msgContext) throws Exception {
       boolean onClient = true;
       boolean request  = true;
 
@@ -33,25 +33,19 @@
          onClient = false;
       }
 
-      try {
-         if (onClient && request ) {
-            // Process client request
-            processClientRequest(msgContext);
-         } else if (onClient && !request) {
-            // Process client response
-            processClientResponse(msgContext);
-         } else if (!onClient && request) {
-            // Process server request
-            processServerRequest(msgContext);
-         } else if (!onClient && !request) {
-            // Process server response
-            processServerResponse(msgContext);
-         }
-      } catch (Exception e) {
-         e.printStackTrace();
-         throw new AxisFault(e.getMessage());
+      if (onClient && request ) {
+        // Process client request
+        processClientRequest(msgContext);
+      } else if (onClient && !request) {
+        // Process client response
+        processClientResponse(msgContext);
+      } else if (!onClient && request) {
+        // Process server request
+        processServerRequest(msgContext);
+      } else if (!onClient && !request) {
+        // Process server response
+        processServerResponse(msgContext);
       }
-
    }
 
    static void processClientRequest(MessageContext msgContext) throws Exception {



Mime
View raw message