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 -0000, 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: [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/
--
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)