Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 64697 invoked from network); 15 Mar 2007 15:29:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2007 15:29:40 -0000 Received: (qmail 13808 invoked by uid 500); 15 Mar 2007 15:29:38 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 13772 invoked by uid 500); 15 Mar 2007 15:29:38 -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 13756 invoked by uid 99); 15 Mar 2007 15:29:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 08:29:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 08:29:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6BC4671407B for ; Thu, 15 Mar 2007 08:29:09 -0700 (PDT) Message-ID: <3335815.1173972549385.JavaMail.jira@brutus> Date: Thu, 15 Mar 2007 08:29:09 -0700 (PDT) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-2281) Adding configurable parameter for Metadata Exchange In-Reply-To: <14630910.1172782550899.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Davanum Srinivas resolved AXIS2-2281. ------------------------------------- Resolution: Fixed Fixed svn revision 518662 thanks, dims > Adding configurable parameter for Metadata Exchange > --------------------------------------------------- > > Key: AXIS2-2281 > URL: https://issues.apache.org/jira/browse/AXIS2-2281 > Project: Axis 2.0 (Axis2) > Issue Type: Improvement > Components: modules > Affects Versions: 1.2 > Reporter: Gee Chia > Fix For: 1.2 > > Attachments: JIRA2281and2267PatchMar13, MEXPatchJira2281 > > > This JIRA is to add configrable parameter for Metadata Exchange function. Following are the two > configuration requirements that currently identified: > a. Once "metadataExchange" module is engaged globally in axis2.xml, we need a way > to disable GetMetadata request for a service. > b. When a GetMetadata request is issued, the /mex:Metadata element returns multiple > /mex:MetadataSection units. A MetadatSection could be either the embedded XML (inline), > an endpoint reference to a Metadata Resource i.e. MetadataReference, > or a URL i.e. Location element. The WS-MEX spec does not define what output forms: inline, Location > or MetadataReference should be returned for a GetMetadata request. Currently, MexMessageReceiver > just default to generating Metadata Sections for all the 3 possible output forms as stated > in the spec. We need a way to configure the Metadata Section content to return for a GetMetadata > request. For example, if there is large amount of data, large amount of inline xml might not be > desirable. The allows to configure only GetMetadata response with Metadata Sections > of Metadata Reference and Location instead of actual information. > > Solution implemented: > Adding "metadataExchange" element parameter configuration in axis2.xml and services.xml, > allows to support the above configuration needs as well as future needs. > Following are the configurables items: > enable attribute - possible values: "false". This is used to disable > MEX support for a service. When disabled, > MexDisabledException will be returned to the > sender of GetMetadata request. > outputform element contains optional "dialect" attribute and > required "forms" attribute. possible values for "forms": > inline,location,reference.If not configured, default is > inline,location, and reference. > > Note that the outputform only avoided unnessary processing in creating Metadata sections > for data format that is not needed. > > As an example, > > forms="inline,location" /> > > > > If the above configuration is added to the axis2.xml, this means the GetMetadata response > will contain Metadata Sections of actual WSDL data, and URL for the WSDL dialect, and > for other dialects such as policy, schema, etc., only Metadata Sections with > MetadataReference and Location will be included in the response. > The order of precedence for the output form will be similar to the data locator look-up: > a. dialect specific at service level i.e. configured in services.xml > b. service level i.e. without dialect attribute specified > c. dialect specific at global level i,e, configured in axis2.xml > d. service level i.e. without dialect attribute specified > e. default output forms to all: inline, location, reference > Summary of code changes: > New class: org.apache.axis2.mex.MexDisabledException > Modified classes: > MexConstants - adding constants for configurable items refere in "metadataExchange" parameter > MexMessageReceiver - Access the parameter axis configuration and service configuration > Check if MEX is disabled before processing > Call MexUtil.determineOutputForm(..) instead of default to > all 3 output forms. > MexUtil: Added APIs: determineOutputForm(..), check_MEX_disabled() > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org