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 "Siim Annuk (JIRA)" <ji...@apache.org> on 2006/05/04 13:27:17 UTC

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

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


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

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-665?page=all ]
     
Ajith Harshana Ranabahu resolved AXIS2-665:
-------------------------------------------

    Resolution: Fixed

The WSDL has multiple ports and WSDL picked up a random port (it should be the first port but the WSDL4J port map does not preserve the order and hence it is not possible to pick the first) and it happened to pick a port having an HTTP binding.
You should specify the port name with the -pn flag. In this case giving -pn StockQuoteSoap as an option generates proper code

> 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


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

Posted by "Tom Jordahl (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-665?page=comments#action_12378025 ] 

Tom Jordahl commented on AXIS2-665:
-----------------------------------

Does Axis2 not automatically support WSDL with multiple ports?
That seems pretty important.  Has anyone run WSDL2Java on the Mappoint WSDL?  It has 4 different services in it...

> 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


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-665?page=all ]

Davanum Srinivas updated AXIS2-665:
-----------------------------------

    Summary: WSDL2Java generated code does not run correctly (multiple ports)  (was: WSDL2Java generated code does not run correctly)

> WSDL2Java generated code does not run correctly (multiple ports)
> ----------------------------------------------------------------
>
>                 Key: AXIS2-665
>                 URL: http://issues.apache.org/jira/browse/AXIS2-665
>             Project: Apache Axis 2.0 (Axis2)
>          Issue 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-665?page=all ]
     
Davanum Srinivas reopened AXIS2-665:
------------------------------------


Need to check Tom's use case.

-- dims

> 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


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

Posted by "Jonathan Luo (JIRA)" <ji...@apache.org>.
    [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-665:
-----------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> 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


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

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ 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