cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r762393 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java
Date Mon, 06 Apr 2009 15:41:28 GMT
Author: dkulp
Date: Mon Apr  6 15:41:28 2009
New Revision: 762393

URL: http://svn.apache.org/viewvc?rev=762393&view=rev
Log:
In some cases, some of the message properties were not being set.

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java?rev=762393&r1=762392&r2=762393&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java
(original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java
Mon Apr  6 15:41:28 2009
@@ -123,9 +123,11 @@
             } else {
                 //Bare style
                 BindingMessageInfo msgInfo = null;
+
     
+                Endpoint ep = exchange.get(Endpoint.class);
+                ServiceInfo si = ep.getEndpointInfo().getService();
                 if (bop != null) { //for xml binding or client side
-                    getMessageInfo(message, bop);
                     if (client) {
                         msgInfo = bop.getOutput();
                     } else {
@@ -134,12 +136,11 @@
                             exchange.setOneWay(true);
                         }
                     }
+                    setMessage(message, bop, client, si, msgInfo.getMessageInfo());
                 }
     
                 Collection<OperationInfo> operations = null;
                 operations = new ArrayList<OperationInfo>();
-                Endpoint ep = exchange.get(Endpoint.class);
-                ServiceInfo si = ep.getEndpointInfo().getService();
                 operations.addAll(si.getInterface().getOperations());
     
                 if (!StaxUtils.toNextElement(xmlReader)) {
@@ -246,6 +247,11 @@
     private MessageInfo setMessage(Message message, BindingOperationInfo operation,
                                    boolean requestor, ServiceInfo si) {
         MessageInfo msgInfo = getMessageInfo(message, operation, requestor);
+        return setMessage(message, operation, requestor, si, msgInfo);
+    }
+    private MessageInfo setMessage(Message message, BindingOperationInfo operation,
+                                   boolean requestor, ServiceInfo si,
+                                   MessageInfo msgInfo) {
         message.put(MessageInfo.class, msgInfo);
 
         Exchange ex = message.getExchange();



Mime
View raw message