[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to