Re: How to generate Integer instead of int in the generated client code (WSDL2Java)?

2006-03-04 Thread Sueveges Gyoergy

Hi all,

Thnx for the answer Dies, yes WSDL is the interface, but I write the  
server, too, so on the server side I can influence the wsdl will be  
generated.

 So on the server side I have the following function (java):

   Collection getGroups(Integer parentId)

And when creating wsdl from the service containing this method, the  
parameters' type xsd:int, but there is no nillable="true" And consequently  
the generated client function is


 Vector getGroups(int parentId)

Vector is not a problem, but there is int instead of Integer.
I would like the generated wsdl to contain the nillable at the messages  
(without editing wsdl everytime). How can I reach that? What should I do  
on the server side?


Thnx for the answers

Best regards.
 George



On Fri, 03 Mar 2006 22:50:00 +0900, Dies Koper <[EMAIL PROTECTED]> wrote:


Hello George,

I doubt it.
Your WSDL file is the interface. If your interface says it will only  
accept non-null values and Axis would generate classes that would allow  
you specify null.. asking for trouble.


You mentioned you need to create (generate?) the WSDL frequently. Maybe  
you can find a way to have the generated WSDL already have the nillable  
attribute set?


Regards,
Dies


Sueveges Gyoergy wrote:

Thnx for the answer.
  I know this nillable possibility, but I should write it into the wsdl  
manually, shouldn't I? I create the wsdl frequently, and it would be  
unconfortable for me always to rewrite the generated wsdl. Is there no  
possibility in the wsdd or somehow to say, that please create Integer  
instead of int on the client from the Integer parameters being in my  
webmethods?

 Thnx
 George
  On Fri, 3 Mar 2006 12:37:15 -, James Clinton  
<[EMAIL PROTECTED]> wrote:



Nillable switches the primitive to an Object.



-Original Message-
From: Sueveges Gyoergy [mailto:[EMAIL PROTECTED]
Sent: 03 March 2006 12:05
To: axis-user@ws.apache.org
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/







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


Re: How to generate Integer instead of int in the generated client code (WSDL2Java)?

2006-03-03 Thread Dies Koper

Hello George,

I doubt it.
Your WSDL file is the interface. If your interface says it will only 
accept non-null values and Axis would generate classes that would allow 
you specify null.. asking for trouble.


You mentioned you need to create (generate?) the WSDL frequently. Maybe 
you can find a way to have the generated WSDL already have the nillable 
attribute set?


Regards,
Dies


Sueveges Gyoergy wrote:

Thnx for the answer.

 I know this nillable possibility, but I should write it into the wsdl 
manually, shouldn't I? I create the wsdl frequently, and it would be 
unconfortable for me always to rewrite the generated wsdl. Is there no 
possibility in the wsdd or somehow to say, that please create Integer 
instead of int on the client from the Integer parameters being in my 
webmethods?


Thnx
 George


On Fri, 3 Mar 2006 12:37:15 -, James Clinton 
<[EMAIL PROTECTED]> wrote:



Nillable switches the primitive to an Object.



-Original Message-
From: Sueveges Gyoergy [mailto:[EMAIL PROTECTED]
Sent: 03 March 2006 12:05
To: axis-user@ws.apache.org
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/



--
Dies KOPER <[EMAIL PROTECTED]> (changed on 1 July 2005)
Fujitsu Ltd - MWPF1  (changed from MWPF3 on 21 Nov 2005)
2-15-16, Shin-Yokohama, Kouhoku-ku, Yokohama, 222-0033, Japan
Tel. +81(45)-475-5605  (internal 7181-4217)



Re: How to generate Integer instead of int in the generated client code (WSDL2Java)?

2006-03-03 Thread Sueveges Gyoergy

Thnx for the answer.

 I know this nillable possibility, but I should write it into the wsdl  
manually, shouldn't I? I create the wsdl frequently, and it would be  
unconfortable for me always to rewrite the generated wsdl. Is there no  
possibility in the wsdd or somehow to say, that please create Integer  
instead of int on the client from the Integer parameters being in my  
webmethods?


Thnx
 George


On Fri, 3 Mar 2006 12:37:15 -, James Clinton  
<[EMAIL PROTECTED]> wrote:



Nillable switches the primitive to an Object.



-Original Message-
From: Sueveges Gyoergy [mailto:[EMAIL PROTECTED]
Sent: 03 March 2006 12:05
To: axis-user@ws.apache.org
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/


RE: How to generate Integer instead of int in the generated client code (WSDL2Java)?

2006-03-03 Thread James Clinton
Nillable switches the primitive to an Object.



-Original Message-
From: Sueveges Gyoergy [mailto:[EMAIL PROTECTED] 
Sent: 03 March 2006 12:05
To: axis-user@ws.apache.org
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]



How to generate Integer instead of int in the generated client code (WSDL2Java)?

2006-03-03 Thread Sueveges Gyoergy

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/