You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by as...@apache.org on 2007/01/05 00:55:01 UTC

svn commit: r492819 - /incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java

Author: assaf
Date: Thu Jan  4 15:55:00 2007
New Revision: 492819

URL: http://svn.apache.org/viewvc?view=rev&rev=492819
Log:
Fix to handle new message wrapping

Modified:
    incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java

Modified: incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java?view=diff&rev=492819&r1=492818&r2=492819
==============================================================================
--- incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java (original)
+++ incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java Thu Jan  4 15:55:00 2007
@@ -124,7 +124,11 @@
             if (mex.getOperation() == null)
                 throw new Exception("Did not find operation " + opName + " on service " + serviceName);
             Message request = mex.createMessage(mex.getOperation().getInput().getMessage().getQName());
-            request.setMessage(body);
+            Element wrapper = body.getOwnerDocument().createElementNS("", "main");
+            wrapper.appendChild(body);
+            Element message = body.getOwnerDocument().createElementNS("", "message");
+            message.appendChild(wrapper);
+            request.setMessage(message);
             mex.invoke(request);
             mex.complete();
             _txManager.commit();