[jira] [Updated] (CXF-8337) wsdl2java generates exceptions which do not follow naming convention

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (CXF-8337) wsdl2java generates exceptions which do not follow naming convention

Peter Seer (Jira)

     [ https://issues.apache.org/jira/browse/CXF-8337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomasz Zorawik updated CXF-8337:
--------------------------------
    Description:
wsdl2java generates wrapper exception class for _fault bean._ The generated exception has method getFaultInfo(). This method name is correct according to JAX-WS specification. However this method returns _fault bean_ stored in a field called _"name of fault bean"._ The name of the field and getter do not follow the naming convention. Why this field is not called "faultInfo"?

I believe a template responsible for generating exceptions is here:

excxf-tools-wsdlto-frontend-jaxws-3.3.3.jar!\org\apache\cxf\tools\wsdlto\frontend\jaxws\template\fault.vm

{color:#172b4d}public $field.ClassName getFaultInfo() {{color}
 {color:#172b4d} return this.$paraName;{color}
 } 

  was:
wsdl2java generates wrapper exception class for _fault bean_ with method getFaultInfo(). This method name is correct according to JAX-WS specification. However this method returns _fault bean_ stored in a field called _"name of fault bean"._ The name of the field and getter do not follow the naming convention. Why this field is not called "faultInfo"?

I believe a template responsible for generating exceptions is here:

excxf-tools-wsdlto-frontend-jaxws-3.3.3.jar!\org\apache\cxf\tools\wsdlto\frontend\jaxws\template\fault.vm

{color:#172b4d}public $field.ClassName getFaultInfo() {{color}
{color:#172b4d} return this.$paraName;{color}



> wsdl2java generates exceptions which do not follow naming convention
> --------------------------------------------------------------------
>
>                 Key: CXF-8337
>                 URL: https://issues.apache.org/jira/browse/CXF-8337
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 3.3.3
>            Reporter: Tomasz Zorawik
>            Priority: Major
>
> wsdl2java generates wrapper exception class for _fault bean._ The generated exception has method getFaultInfo(). This method name is correct according to JAX-WS specification. However this method returns _fault bean_ stored in a field called _"name of fault bean"._ The name of the field and getter do not follow the naming convention. Why this field is not called "faultInfo"?
> I believe a template responsible for generating exceptions is here:
> excxf-tools-wsdlto-frontend-jaxws-3.3.3.jar!\org\apache\cxf\tools\wsdlto\frontend\jaxws\template\fault.vm
> {color:#172b4d}public $field.ClassName getFaultInfo() {{color}
>  {color:#172b4d} return this.$paraName;{color}
>  } 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)