You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Gee Chia (JIRA)" <ji...@apache.org> on 2007/02/27 17:32:05 UTC

[jira] Created: (AXIS2-2267) Adding utility APIs for Metadata Exchange

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


[jira] Resolved: (AXIS2-2267) Adding utility APIs for Metadata Exchange

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-2267.
-------------------------------------

    Resolution: Fixed

Fixed in svn revision 518662

thanks,
dims

> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2267) Adding utility APIs for Metadata Exchange

Posted by "Gee Chia (JIRA)" <ji...@apache.org>.
    [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2267) Adding utility APIs for Metadata Exchange

Posted by "Gee Chia (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gee Chia updated AXIS2-2267:
----------------------------

    Attachment: MexUpdateFeb27Patch

Replaced org\apache\axis2\mex\OM\Dialet.java with 
org\apache\axis2\mex\OM\Dialect.java  to fix "Dialet" typo.



> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org