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.

Bug 115109 - getJoke_Proxy generated wrong
Summary: getJoke_Proxy generated wrong
Status: VERIFIED DUPLICATE of bug 112758
Alias: None
Product: javame
Classification: Unclassified
Component: Web Services (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Michal Skvor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-09 17:07 UTC by Lukas Hasik
Modified: 2007-09-10 15:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2007-09-09 17:07:18 UTC
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;
     }
Comment 1 Petr Suchomel 2007-09-09 20:11:19 UTC

*** This issue has been marked as a duplicate of 112758 ***
Comment 2 Lukas Hasik 2007-09-10 15:41:23 UTC
verified in beta1 build 0910