[ 
https://issues.apache.org/jira/browse/AXIS2-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481180
 ] 

Gee Chia commented on AXIS2-2267:
---------------------------------


I have uploaded the new patch for this jira, and the code is available in JIRA 
2281 patch. 

> 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
>
>         Attachments: MexUpdateFeb27Patch
>
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to