[ 
http://issues.apache.org/jira/browse/AXIS2-665?page=comments#action_12413929 ] 

Jonathan Luo commented on AXIS2-665:
------------------------------------

This issue may be similar to AXIS2-783

> WSDL2Java generated code does not run correctly
> -----------------------------------------------
>
>          Key: AXIS2-665
>          URL: http://issues.apache.org/jira/browse/AXIS2-665
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: wsdl
>  Environment: Windows 200 Service Pack 4
>     Reporter: Siim Annuk

>
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.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