axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gee Chia (JIRA)" <>
Subject [jira] Created: (AXIS2-2267) Adding utility APIs for Metadata Exchange
Date Tue, 27 Feb 2007 16:32:05 GMT
Adding utility APIs for Metadata Exchange 

                 Key: AXIS2-2267
             Project: Axis 2.0 (Axis2)
          Issue Type: Improvement
          Components: modules
    Affects Versions: nightly
            Reporter: Gee Chia
             Fix For: nightly

The patch includes utility APIs and minor bug fixes described below:

  org.apache.axis2.dataretrieval changes:
      1. ServiceData - changed from protected interface/API to public (so customized data
locator has access to the APIs)
      2. DataLocatorFactory (protected api changed to public )
      3. DataRetrievalUtil::convertOMElement - throws exception to handle  the case when 
there is no ServiceData.xml to load

       if (result != null && result.length > 0) - check length for non-empty data
result array

Mex Module (org.apache.axis2.mex package)
     Basically, added fromOM mehtods to populate java class object from OMElement, also following
convenient APIs, and 

     1.   MexUtil - new APIs
           public static Metadata fromOM(OMElement omElement) throws MexException{}
           public static Metadata fromOM(OMElement omElement, String mexNamespaceValue) throws
     2. Metadata new APIs	
          public MetadataSection[] getMetadataSection(String dialect )
          public MetadataSection[] getMetadataSection(String dialect, String identifier)
          public MetadataSection[] getMetadataSection(String dialect, String identifier, OutputForm

 3. Other misc changes/fixes
     MetadataReference - Added getEPRElement, toOM deal with EPR, etc.
     Message Receiver - dialet to dialect

Sample Usage:

Sample usage - Please refer java doc for details.
	  Metadata metadata = MexUtil.fromOM(result);

         // Return all WSDL  metadata sections 
	  MetadataSection[] sections = metadata.getMetadataSection("");

        // Return all  inline WSDL  metadata sections 
	  metadata.getMetadataSection("", null, OutputForm.INLINE_FORM);

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:
For additional commands, e-mail:

View raw message