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 "Supun Malinga (Created) (JIRA)" <ji...@apache.org> on 2012/02/08 09:49:00 UTC

[jira] [Created] (AXIS2-5240) Provide an API/mechanism for setting parameters for run-time Java2WSDL generation.

Provide an API/mechanism for setting parameters for run-time Java2WSDL generation.
----------------------------------------------------------------------------------

                 Key: AXIS2-5240
                 URL: https://issues.apache.org/jira/browse/AXIS2-5240
             Project: Axis2
          Issue Type: Improvement
          Components: codegen
    Affects Versions: 1.6.1
            Reporter: Supun Malinga
             Fix For: 1.7.0


In current axis2 user's ability to control the generated wsdl(1.1/2.0) for a generated service. A comprehensive mechanism is needed to fulfill this.
For eg:
* setting custom port names, port types, wsdl address, binding name, etc

One idea would be to introduce new parameters for services.xml to set these.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5240) Provide an API/mechanism for setting parameters for run-time Java2WSDL generation.

Posted by "Sagara Gunathunga (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242307#comment-13242307 ] 

Sagara Gunathunga  commented on AXIS2-5240:
-------------------------------------------

1.) At the moment WSDLSupplier only supports for WSDL 1.1 but it should support for WSDL 2.0, ideally without introducing any new interface.   AXIS2-5278 issue address this scenario and it's a task of your project.  

2.) As I remember Spring project uses kind of a template concept specially in database access classes also better to look into template pattern.  
                
> Provide an API/mechanism for setting parameters for run-time Java2WSDL generation.
> ----------------------------------------------------------------------------------
>
>                 Key: AXIS2-5240
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5240
>             Project: Axis2
>          Issue Type: Improvement
>          Components: codegen
>    Affects Versions: 1.6.1
>            Reporter: Supun Malinga
>              Labels: features
>             Fix For: 1.7.0
>
>
> In current axis2 user's ability to control the generated wsdl(1.1/2.0) for a generated service. A comprehensive mechanism is needed to fulfill this.
> For eg:
> * setting custom port names, port types, wsdl address, binding name, etc
> One idea would be to introduce new parameters for services.xml to set these.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5240) Provide an API/mechanism for setting parameters for run-time Java2WSDL generation.

Posted by "Ranjana Prasad (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242053#comment-13242053 ] 

Ranjana Prasad commented on AXIS2-5240:
---------------------------------------

Thanks Sagara. 

I have two more questions to ask. 

1.)  WSDLSupplier interface (http://axis.apache.org/axis2/java/core/api/org/apache/axis2/dataretrieval/WSDLSupplier.html) returns Definition object but Woden use Description object, here do I have to introduce new interface such as  WSDL2Supplier ?

2.) Can you provide me any reference for above discussed template approach ? 
                
> Provide an API/mechanism for setting parameters for run-time Java2WSDL generation.
> ----------------------------------------------------------------------------------
>
>                 Key: AXIS2-5240
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5240
>             Project: Axis2
>          Issue Type: Improvement
>          Components: codegen
>    Affects Versions: 1.6.1
>            Reporter: Supun Malinga
>              Labels: features
>             Fix For: 1.7.0
>
>
> In current axis2 user's ability to control the generated wsdl(1.1/2.0) for a generated service. A comprehensive mechanism is needed to fulfill this.
> For eg:
> * setting custom port names, port types, wsdl address, binding name, etc
> One idea would be to introduce new parameters for services.xml to set these.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5240) Provide an API/mechanism for setting parameters for run-time Java2WSDL generation.

Posted by "Sagara Gunathunga (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13241063#comment-13241063 ] 

Sagara Gunathunga  commented on AXIS2-5240:
-------------------------------------------

I'm thinking about a mechanism to customize the WSDL content generated by AxisService2WSDL20/AxisService2WSDL20 through a user defined template class. There are few challenges here because WSDL1.1 and WSDL2.0 use two different frameworks for WSDL manipulations but both AxisService2WSDL20 and AxisService2WSDL20  classes use Axiom to manipulate WSDL content hence IMO we can facilitate users to customize generated WSDL using AXIOM API. 

Consider following method  -  public OMElement customizeBinding(OMElement binding)  once a user provide a class that overrides above method, Axis2 runtime call this method and pass binding OMElement generated by AxisService2WSDL20/AxisService2WSDL20 classes. Within the above method a user can modify auto-generated  Binding element according to his requirements. In the same time this abstract template class should override WSDLSupplier  interface that enables to reuse  the procedure used with WSDLSupplier for this template approach too. 

At the moment within AxisService2WSDL20/AxisService2WSDL20 classes most of WSDL generated code available as a single method you need to refactor that specific method into several methods first. 
                
> Provide an API/mechanism for setting parameters for run-time Java2WSDL generation.
> ----------------------------------------------------------------------------------
>
>                 Key: AXIS2-5240
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5240
>             Project: Axis2
>          Issue Type: Improvement
>          Components: codegen
>    Affects Versions: 1.6.1
>            Reporter: Supun Malinga
>              Labels: features
>             Fix For: 1.7.0
>
>
> In current axis2 user's ability to control the generated wsdl(1.1/2.0) for a generated service. A comprehensive mechanism is needed to fulfill this.
> For eg:
> * setting custom port names, port types, wsdl address, binding name, etc
> One idea would be to introduce new parameters for services.xml to set these.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5240) Provide an API/mechanism for setting parameters for run-time Java2WSDL generation.

Posted by "Ranjana Prasad (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240479#comment-13240479 ] 

Ranjana Prasad commented on AXIS2-5240:
---------------------------------------

Hi Supun, 

Can you provide me more details about this improvement ? 
                
> Provide an API/mechanism for setting parameters for run-time Java2WSDL generation.
> ----------------------------------------------------------------------------------
>
>                 Key: AXIS2-5240
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5240
>             Project: Axis2
>          Issue Type: Improvement
>          Components: codegen
>    Affects Versions: 1.6.1
>            Reporter: Supun Malinga
>              Labels: features
>             Fix For: 1.7.0
>
>
> In current axis2 user's ability to control the generated wsdl(1.1/2.0) for a generated service. A comprehensive mechanism is needed to fulfill this.
> For eg:
> * setting custom port names, port types, wsdl address, binding name, etc
> One idea would be to introduce new parameters for services.xml to set these.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (AXIS2-5240) Provide an API/mechanism for setting parameters for run-time Java2WSDL generation.

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

Sagara Gunathunga  updated AXIS2-5240:
--------------------------------------

    Issue Type: New Feature  (was: Improvement)
    
> Provide an API/mechanism for setting parameters for run-time Java2WSDL generation.
> ----------------------------------------------------------------------------------
>
>                 Key: AXIS2-5240
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5240
>             Project: Axis2
>          Issue Type: New Feature
>          Components: codegen
>    Affects Versions: 1.6.1
>            Reporter: Supun Malinga
>              Labels: features
>             Fix For: 1.7.0
>
>
> In current axis2 user's ability to control the generated wsdl(1.1/2.0) for a generated service. A comprehensive mechanism is needed to fulfill this.
> For eg:
> * setting custom port names, port types, wsdl address, binding name, etc
> One idea would be to introduce new parameters for services.xml to set these.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org