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/

Reply via email to