Nillable switches the primitive to an Object.

<xsd:element name="accountYear" type="xsd:int" nillable="false" />

-----Original Message-----
From: Sueveges Gyoergy [mailto:[EMAIL PROTECTED] 
Sent: 03 March 2006 12:05
To: [email protected]
Subject: How to generate Integer instead of int in the generated client
code (WSDL2Java)?


Hi all,

  I'm writing a webservice containg a method:

    Collection getGroups(Integer parentId)

where I also need the null value (It would mean the root). But when  
generating the client code it will be

   ...... getGroups(int parentId)

So I would like Integer here. How can I switch on the wrapped types  
without editing the wsdl manually (nillable,...) when I generate the  
client with wsdl2java.
(I tried some things in the wsdd, some swithces at wsdl2java, and once  
there was Integer instead of int, but it was accident, I couldn't  
reproduce it.)

Thnx for your answer in advance

  George

Axis: 1.3
Java: Sun 1.4.2
Jetty: 5.1.10





-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/


-----------------------------------------------------
THE INFORMATION IN THIS E-MAIL AND IN ANY ATTACHMENTS IS CONFIDENTIAL

AND MAY BE PRIVILEGED OR OTHERWISE PROTECTED FROM DISCLOSURE. 
IF YOU ARE NOT THE INTENDED RECIPIENT AND HAVE RECEIVED IT IN ERROR YOU ARE ON 
NOTICE OF ITS STATUS. 
PLEASE NOTIFY THE SENDER IMMEDIATELY BY RETURN EMAIL AND THEN DELETE THIS EMAIL 
AND ANY ATTACHMENT FROM YOUR SYSTEM. 
YOU MUST NOT RETAIN, COPY OR USE THIS E-MAIL OR ANY ATTACHMENT FOR ANY PURPOSE, 
NOR DISCLOSE ALL OR ANY PART OF ITS CONTENTS TO ANY OTHER PERSON: 

TO DO SO COULD BE A BREACH OF CONFIDENCE

EMAIL MAY BE SUSCEPTIBLE TO DATA CORRUPTION, INTERCEPTION AND UNAUTHORISED 
AMENDMENT, 
AND WE DO NOT ACCEPT LIABILITY FOR ANY SUCH CORRUPTION, INTERCEPTION OR 
AMENDMENT OR THE CONSEQUENCES THEREOF. 

WE MAY MONITOR THE CONTENT OF EMAILS SENT AND RECEIVED VIA OUR NETWORK FOR 
VIRUSES OR UNAUTHORISED USE AND FOR OTHER LAWFUL BUSINESS PURPOSES. 
WE DO NOT ACCEPT RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING FROM A VIRUS IN 
ANY EMAIL OR ATTACHMENT.

-----------------------------------------------
[EMAIL PROTECTED]

Reply via email to