You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by ch...@apache.org on 2007/07/13 11:33:46 UTC
svn commit: r555918 - in
/webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2:
client/SandeshaClient.java storage/inmemory/InMemoryStorageManager.java
Author: chamikara
Date: Fri Jul 13 02:33:45 2007
New Revision: 555918
URL: http://svn.apache.org/viewvc?view=rev&rev=555918
Log:
Fixed two bug fixes.
1. Fully building the SOAP Envelope when storing it in the InMemoryStorageManager. This is the correct thing to do since data from an unbuilt SOAP Envelope may get lost in a case like a user timeout.
2. Set the parameter.setEditable() of the parent bean to false when setting a PolicyBean from the client API.
If we dont set this axis2 does not allows us to replace this with the bean given by the user.
Modified:
webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/client/SandeshaClient.java
webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/storage/inmemory/InMemoryStorageManager.java
Modified: webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/client/SandeshaClient.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/client/SandeshaClient.java?view=diff&rev=555918&r1=555917&r2=555918
==============================================================================
--- webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/client/SandeshaClient.java (original)
+++ webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/client/SandeshaClient.java Fri Jul 13 02:33:45 2007
@@ -1428,6 +1428,7 @@
parameter = new Parameter ();
parameter.setName(Sandesha2Constants.SANDESHA_PROPERTY_BEAN);
} else {
+ parameter.setEditable(true); //if we don't do it here, Axis2 will not allow us to override the parameter value.
parent = (SandeshaPolicyBean) parameter.getValue();
policyBean.setParent(parent);
}
Modified: webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/storage/inmemory/InMemoryStorageManager.java
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/storage/inmemory/InMemoryStorageManager.java?view=diff&rev=555918&r1=555917&r2=555918
==============================================================================
--- webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/storage/inmemory/InMemoryStorageManager.java (original)
+++ webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/storage/inmemory/InMemoryStorageManager.java Fri Jul 13 02:33:45 2007
@@ -295,6 +295,13 @@
StorageEntry entry = new StorageEntry();
entry.msgContext = msgContext;
entry.envelope = msgContext.getEnvelope();
+
+ //building the full enveloper before storing.
+ SOAPEnvelope envelope = msgContext.getEnvelope();
+ envelope.buildWithAttachments();
+
+ entry.envelope = envelope;
+
storageMap.put(key,entry);
}
} catch(Exception e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org