You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by jl...@apache.org on 2006/11/07 09:35:11 UTC

svn commit: r472028 - /incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/soap/SOAPHandlerInterceptorTest.java

Author: jliu
Date: Tue Nov  7 00:35:11 2006
New Revision: 472028

URL: http://svn.apache.org/viewvc?view=rev&rev=472028
Log:
* Fixed Eclipse warnings

Modified:
    incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/soap/SOAPHandlerInterceptorTest.java

Modified: incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/soap/SOAPHandlerInterceptorTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/soap/SOAPHandlerInterceptorTest.java?view=diff&rev=472028&r1=472027&r2=472028
==============================================================================
--- incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/soap/SOAPHandlerInterceptorTest.java (original)
+++ incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/handler/soap/SOAPHandlerInterceptorTest.java Tue Nov  7 00:35:11 2006
@@ -155,7 +155,8 @@
                 Boolean outboundProperty = (Boolean)smc.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
                 if (outboundProperty.booleanValue()) {
                     try {
-                        SOAPMessage message = smc.getMessage();
+                        SOAPMessage message = null;
+                        message.getSOAPBody();                                               
                         message = preparemSOAPMessage("resources/greetMeRpcLitRespChanged.xml");
                     } catch (Exception e) {
                         throw new Fault(e);
@@ -396,7 +397,7 @@
         list.add(new SOAPHandler<SOAPMessageContext>() {
             public boolean handleMessage(SOAPMessageContext smc) {
                 try {
-                    SOAPMessage message = smc.getMessage();
+                    smc.getMessage();
                 } catch (Exception e) {
                     throw new Fault(e);
                 }
@@ -515,7 +516,7 @@
             if (qn.equals(soapVersion.getHeader())) {
                 XMLStreamReader filteredReader = new PartialXMLStreamReader(xmlReader, soapVersion.getBody());
 
-                Document doc = StaxUtils.read(filteredReader);
+                StaxUtils.read(filteredReader);
             }
             // advance just past body.
             xmlReader.next();
@@ -555,12 +556,12 @@
         soapMessage.writeTo(os);
         return os;
     }
-
+/*
     private CachedStream prepareOutputStreamFromSOAPMessage(SOAPMessage soapMessage) throws Exception {
         CachedStream os = new CachedStream();
         soapMessage.writeTo(os);
         return os;
-    }
+    }*/
 
     private class CachedStream extends AbstractCachedOutputStream {
         protected void doFlush() throws IOException {