axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gee Chia (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/jira/browse/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

AxisService::getWSDL, 
       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 
     clean-up.

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

 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("http://schemas.xmlsoap.org/wsdl/");

         
        // Return all  inline WSDL  metadata sections 
	  metadata.getMetadataSection("http://schemas.xmlsoap.org/wsdl/", 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message