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 "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/02/02 08:47:05 UTC

[jira] Resolved: (AXIS2-665) WSDL2Java generated code does not run correctly (multiple ports)

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

Amila Chinthaka Suriarachchi resolved AXIS2-665.
------------------------------------------------

    Resolution: Fixed

this bug is already fixed now. (there is a slight problem since there is a class beign gengerated as String and this can over come by setting java.lang.String in template). Now it picks the fist soap port to code gen)

> WSDL2Java generated code does not run correctly (multiple ports)
> ----------------------------------------------------------------
>
>                 Key: AXIS2-665
>                 URL: https://issues.apache.org/jira/browse/AXIS2-665
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>         Environment: Windows 200 Service Pack 4
>            Reporter: Siim Annuk
>         Assigned To: Amila Chinthaka Suriarachchi
>
> When I generate Java code from a WSDL (using WSDL2Java from Axis2 1.0 RC4) and try to run (i have created the main method that calls the test functions) the generated test case (compiling seems successful), I get a java.lang.Error: Unresolved compilation problem: 
> 	Unreachable code.
> When looking into the generated stub code, this is what seems to be generating the problem:
>                                     //Unknown style!! No code is generated
>                                     throw new java.lang.UnsupportedOperationException("Unknown Style");
> Removing it still doesn't run the generated test case correctly. Instead I get a NullPointerException. 
> Here's the WSDL I used for testing: http://www.webservicex.net/stockquote.asmx?WSDL
> This is the commandline I use for generating the code: 
> WSDL2Java -uri http://www.webservicex.net/stockquote.asmx?wsdl -t -a -g -u -p stockquote -o c:\generatedClients\StockQuote
> I have tried to generate the code from many WSDLs at different locations, but never managed to acutally run any test cases successfully. I've also tried WSDL2Java from Axis2 0.95, 1.0 RC2 and 1.0 RC4.
> Is WSLD2Java still having problems generating correct code from a little bit more complex WSDL's or am I not using WSDL2Java correctly?

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org