axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sagara Gunathunga (Commented) (JIRA)" <>
Subject [jira] [Commented] (AXIS2-5240) Provide an API/mechanism for setting parameters for run-time Java2WSDL generation.
Date Thu, 29 Mar 2012 08:01:44 GMT


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
> Provide an API/mechanism for setting parameters for run-time Java2WSDL generation.
> ----------------------------------------------------------------------------------
>                 Key: AXIS2-5240
>                 URL:
>             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:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message