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.

xsd:element name=accountYear type=xsd:int nillable=false /

-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 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.

xsd:element name=accountYear type=xsd:int nillable=false /

-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 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.

xsd:element name=accountYear type=xsd:int nillable=false /

-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)