Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 25920 invoked from network); 21 Sep 2009 21:43:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Sep 2009 21:43:42 -0000 Received: (qmail 51802 invoked by uid 500); 21 Sep 2009 21:43:41 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 51661 invoked by uid 500); 21 Sep 2009 21:43:40 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 51643 invoked by uid 99); 21 Sep 2009 21:43:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Sep 2009 21:43:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Sep 2009 21:43:37 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4CC76234C1EB for ; Mon, 21 Sep 2009 14:43:16 -0700 (PDT) Message-ID: <477501793.1253569396313.JavaMail.jira@brutus> Date: Mon, 21 Sep 2009 14:43:16 -0700 (PDT) From: "Rich Scheuerle (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-4502) JAX-WS Needs a property to prevent lossy transformations before the application handlers are called In-Reply-To: <2010160479.1253537776472.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12758036#action_12758036 ] Rich Scheuerle commented on AXIS2-4502: --------------------------------------- Resolved by revision 817419 > JAX-WS Needs a property to prevent lossy transformations before the application handlers are called > --------------------------------------------------------------------------------------------------- > > Key: AXIS2-4502 > URL: https://issues.apache.org/jira/browse/AXIS2-4502 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: jaxws > Reporter: Rich Scheuerle > Assignee: Rich Scheuerle > Original Estimate: 24h > Remaining Estimate: 24h > > Problem: > When a message is received, we want to quickly transform the message into the "final form" to reduce memory and increase speed. > For example, in the JAX-WS server inbound case, the message payload is transformed into a JAXB object (which is what the JAXWS @WebService needs). > However if the customer has installed a JAX-WS soap handler AND that handler inspects the message payload (the contents of the soap Body), then > the JAXB object must be "re-transformed" into an SAAJ tree. > This re-transformation is slow and is also "lossy". For example, the namespaces in the original message and post-JAXB message may be different. > Most SOAP Handlers don't touch the SOAP body. The JAX-WS specification does not provide a mechanism to allow SOAP Handlers to tell the engine their "intent". > So we want to expose an option that would allow a customer (developer or administrator) to preserve the original message. > Solution: > The Axis JAX-RPC web service engine had a property call "high fidelity". The intention of the property was to preserve the original message. > I am working on a fix to introduce a "jaxws.payload.highFidelity" property. The property will be available for programatic property (used by the developer )or as a configuration parameter (used by an administrator). > ** > * Context Property: > * Name: jaxws.payload.highFidelity > * Value: Boolean.TRUE or Boolean.FALSE > * Default: null, which is interpreted as FALSE....engine may set this to TRUE in some cases. > * > * Configuration Parameter > * Name: jaxws.payload.highFidelity > * Value: String or Boolean representing true or false > * Default: null, which is interpreted as FALSE > * > * Description: > * If the value is false, the jax-ws engine will transform the message in the most > * performant manner. In some cases these transformations will cause the loss of some information. > * For example, JAX-B transformations are lossy. > * > * If the value is true, the jax-ws engine will transform the message in the most loss-less manner. > * In some cases this will result in slower performance. The message in such cases is "high fidelity", > * which means that it is a close replica of the original message. > * > * Customers should accept the default behavior (false), and only set the value to true if it is > * necessary for a SOAP Handler or other code requires a high fidelity message. > * > * The engine will first examine the Context property. If not set, the value of the Configuration > * property is used. > */ > public static final String JAXWS_PAYLOAD_HIGH_FIDELITY = > "jaxws.payload.highFidelity"; -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.