Wouldn't a toString() method on you example have to include
both the int and the String?  What format would you expect it in?

I am not sure we can generate anything useful other than debugging output....

--
Tom Jordahl
Macromedia


-----Original Message-----
From: Token Scotsman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 5:27 AM
To: [EMAIL PROTECTED]
Subject: WSDL2Java auto toString()


Dev people,
    would it be possible to get WSDL2Java to generate toString() functions 
for user defined types in a web service: E.g:

public class UserDefinedType {
    public int IntValue;
    public String StringValue;
}

Would it be possible to get WSDL2Java to generate a toString() function for 
this type?

E.g:

/**
* return StringValue
*/
public String toString() {
    return StringValue;
}

I'm not sure of the best way of getting WSDL2Java to do this. Perhaps a new 
option -toString UserDefinedType,StringValue.

Perhaps this is just a bad idea generally or the is a better/easier way to 
achieve this.

I'd be interested on your thoughts on the matter.

Regards,

TS

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

Reply via email to