[
https://issues.apache.org/jira/browse/AXIS2-2060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Davanum Srinivas closed AXIS2-2060.
-----------------------------------
Resolution: Invalid
> Compilation error in WSDL20ToAxisServiceBuilder.java
> ----------------------------------------------------
>
> Key: AXIS2-2060
> URL: https://issues.apache.org/jira/browse/AXIS2-2060
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: kernel
> Environment: Win XP
> Reporter: Samuel Isokpunwu
> Attachments: patch.txt
>
>
> Getting compilation error in
> org.apache.axis2.description.WSDL20ToAxisServiceBuilder.java trying to build
> the latest Axis2 src extract.
> There are type mismatch btw Description and DescriptionElements in three
> diferent areas of the code in statements like:
> Description description = wsdlReader.readWSDL(wsdlUri);
> Not sure why there are statements like:
> WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
> Description description = wsdlReader.readWSDL(wsdlUri);
> DescriptionElement descriptionElement = description.toElement();
> Instead of:
> WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
> DescriptionElement descriptionElement = wsdlReader.readWSDL(wsdlUri);
> But if the right approach is to get DescriptionElement through
> Description.toElement(), then to fix the compilation error will simply be by
> type casting wsdlReader.readWSDL(wsdlUri) to Description.
> Description description = (Description)wsdlReader.readWSDL(wsdlUri);
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]