I think I found a way to add the rampart module on demand. I'll check in the changes when I finish the build.

Thanks,
Raymond

--------------------------------------------------
From: "Raymond Feng" <[EMAIL PROTECTED]>
Sent: Thursday, May 22, 2008 3:40 PM
To: <tuscany-dev@ws.apache.org>; <[EMAIL PROTECTED]>
Subject: Re: How can we turn on/off Rampart conditionally for binding.ws over Axis2?

Is there a way to tell if WS-Security is required for a WS binding? I guess we need to dig into the policy stuff. We then probably need to pass a flag down to the TuscanyAxisConfigurator so that it can decide if rampart should be activated.

Thanks,
Raymond
--------------------------------------------------
From: "ant elder" <[EMAIL PROTECTED]>
Sent: Thursday, May 22, 2008 12:05 PM
To: <tuscany-dev@ws.apache.org>
Subject: Re: How can we turn on/off Rampart conditionally for binding.ws over Axis2?

+1 to the idea, would like to help but not sure if i'll get to it
immediately, its not completely trivial but we should be able to do it with a bit of refactorying in the axis binding. Its getting set on always by our
TuscanyAxisConfigurator class.

  ...ant

On Thu, May 22, 2008 at 1:06 AM, Raymond Feng <[EMAIL PROTECTED]> wrote:

Hi,

In the latest binding-ws-axis2 code, we always have module "rampart"
activated in [1]. Consequently, rampart gets on the way for all Axis2 based binding.ws invocations. The worst part is that one of the rampart handlers
try to read some data from the SOAP envelope and it forces the whole
OMElement to be fully loaded before it is sent to the HTTP. This behavior pretty much defeats the performance optimization I'm working on to wrap JAXB
objects into a SourcedOMElement so that the JAXB objects will only be
serialized once when the message is sent to the HTTP connection.

I understand rampart is configured to support WS-Security. But I don't
think we should always pay the penalty in the cases where WS-Security is not
required at all. Is there an option to turn on/off Rampart conditionally
(maybe by some code in tuscany-policy-security-ws)?

Thanks,
Raymond

[1]
https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/modules/binding-ws-axis2/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/engine/config/axis2.xml


Reply via email to