This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
trunk build 3133 ---- Product Version: NetBeans IDE Dev (Build 070909) Java: 1.6.0_03-ea; Java HotSpot(TM) Client VM 1.6.0_03-ea-b02 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: F:\netbeans\userdirs\nb60-0909 ---- -when generated mobile client to WS client for http://www.interpressfact.net/webservices/getJoke.asmx?wsdl the server side is generated wrongly ----- public class getJoke_Proxy { public getJoke service; public String getJoke(String category) throws Exception { String _result; try { // Call Web Service Operation wsclient.GetJokeSoap port = getService().getGetJokeSoap(); _result = port.getJoke(category); } catch( Exception ex ) { ex.printStackTrace(); throw ex; } return _result; } public getJoke getService(){ if (service == null){ service = new getJoke(); } return service; } } ----- 1, there is no *getJoke* class - only GetJoke 2, you cannot get the service in this way ----- something like this might work --- getJoke_Proxy_origin.java +++ getJoke_Proxy.java @@ -9,14 +9,14 @@ /** * */ -public class getJoke_Proxy_1 { +public class getJoke_Proxy { - public getJoke service; + public GetJoke_Service service; public String getJoke(String category) throws Exception { String _result; try { // Call Web Service Operation - wsclient.GetJokeSoap port = getService().getGetJokeSoap(); + wsclient.GetJokeSoap port = service.getGetJokeSoap(); _result = port.getJoke(category); } catch( Exception ex ) { ex.printStackTrace(); @@ -25,9 +25,9 @@ return _result; } - public getJoke getService(){ + public GetJoke_Service getService(){ if (service == null){ - service = new getJoke(); + service = new GetJoke_Service(); } return service; }
*** This issue has been marked as a duplicate of 112758 ***
verified in beta1 build 0910