MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
hysterio
Post subject: Remarks, Questions & Enhancements  PostPosted: Jul 19, 2006 - 03:28 PM



Joined: Nov 25, 2004
Posts: 63

i spent some time to get a deeper look to the web service wizards of MyEclipse 5.0M2 and here are my remarks, questions & other stuff:

1. when you use top-down wizard, the generated code is not completely java 1.5 (or tiger). this line (in the class NameOfServiceClient)
Code:
    private HashMap endpoints = new HashMap();

should be
Code:
    private HashMap<QName, Endpoint> endpoints = new HashMap<QName, Endpoint>();

or (more general)
Code:
    private HashMap<Object, Object> endpoints = new HashMap<Object, Object>();


2. when you use top-down wizard, you can enter a wsdl-url, but each time you have to re-enter the complete url. it would be very nice and handy if this was a combo that memorizes every url you have already chosen (so if you have 2 similar urls with subtle differences, you type in the first and then for the second: you select the first one, make the changes instead of typing it in from scratch

3. i have a own bean Resultaat (containing an int and a String). One of my web services has a method with the signature (purpose of this method: given the name of a table, return an object of type Resultaat containing the name of the table and the number of rows in the table):
Code:

@WebMethod
public Resultaat getAantalRecords(@WebParam(name="tabelNaam") String tabel)

when i use the top down wizard and i select the appropriate wsdl, my own Resultaat-class is overwritten by a generated one (makes no difference in which package i put this class, nor if i fill in the package input field in the wizard, it's always overwritten). so my code got broken, because i use in the method implementation some methods and a constructor that don't exist in the generated one. Is this some bug or how do i have to solve this?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jul 19, 2006 - 07:38 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

I've sent this to the team working on WS, thank you for the detailed feedback.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
hysterio
Post subject:   PostPosted: Jul 20, 2006 - 12:31 PM



Joined: Nov 25, 2004
Posts: 63

is there some work-around for 3. ?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jul 20, 2006 - 09:31 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

I'm hoping someone from the team will reply, I'll ping them.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
hysterio
Post subject:   PostPosted: Aug 08, 2006 - 10:26 AM



Joined: Nov 25, 2004
Posts: 63

i installed the 5.0 GA release today (first de-installed the M2-release of course) and then i had a look at the 3 points i posted in this thread.

None of those 3 got solved and for number 3 that's a big problem for me, because i need it. so is there a work-around ???

some weeks ago i had the same question, but no answer so i assumed no work-around. maybe i have now more luck

_________________
SCJP 1.4
SCJP 5.0
http://www.hysterio.be
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
hysterio
Post subject:   PostPosted: Aug 11, 2006 - 07:46 AM



Joined: Nov 25, 2004
Posts: 63

i keep asking this question until it's answered: is there a workaround for this issue (as posted in the first post of this thread):

3. i have a own bean Resultaat (containing an int and a String). One of my web services has a method with the signature (purpose of this method: given the name of a table, return an object of type Resultaat containing the name of the table and the number of rows in the table):
Code:
@WebMethod
public Resultaat getAantalRecords(@WebParam(name="tabelNaam") String tabel)

when i use the top down wizard and i select the appropriate wsdl, my own Resultaat-class is overwritten by a generated one (makes no difference in which package i put this class, nor if i fill in the package input field in the wizard, it's always overwritten). so my code got broken, because i use in the method implementation some methods and a constructor that don't exist in the generated one. Is this some bug or how do i have to solve this?

_________________
SCJP 1.4
SCJP 5.0
http://www.hysterio.be
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Aug 11, 2006 - 05:59 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

We've been discussing strategies to tackle the bigger issue here, while we don't have a perfect workaround, something you could do is create another source folder just for generated files and generate the WS classes into that directory and then just erase the duplicate Resultaat class.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits