Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 17495 invoked from network); 20 May 2010 17:46:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 May 2010 17:46:25 -0000 Received: (qmail 2644 invoked by uid 500); 20 May 2010 17:46:24 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 2462 invoked by uid 500); 20 May 2010 17:46:24 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 2454 invoked by uid 99); 20 May 2010 17:46:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 May 2010 17:46:24 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of me.ramchandran@gmail.com designates 209.85.212.41 as permitted sender) Received: from [209.85.212.41] (HELO mail-vw0-f41.google.com) (209.85.212.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 May 2010 17:46:16 +0000 Received: by vws13 with SMTP id 13so110349vws.0 for ; Thu, 20 May 2010 10:45:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=QkSdeVQxNylbrdC9Q2LwwS7xy09+ppQiLkuFEg7aisw=; b=wtiE6HrMakiWUYLWQ5bGsOEAmM69keaADqSTpbcp/cqilKYXuBxsL6NVAsszbZ7vCC DoicjSNPcEEsyAeu+5ZLnGiNx5zkzFlk3sxW7VRRJQRk+K3Ui2wvAOX1hqc4/evgS8BN iPFqmp4hUdaFnzzygEmKgrNFXAvxKNRF28Q2E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=AYFOLa22wfVXCQb9N/Gwug6sirQEDjguIUD1riBIZNbuUJe4X4MXzUx58dKJBF4d77 R7/UxLl+0AqmVCE370C8MpKaQAkrIg0evm2ufKZgne7R42iO1AvwJr/ZEdu9FNBbz8FE eWXJOeg05BuE+7ixjPiEBi+0Ju2vuUdMuTwZQ= Received: by 10.229.219.211 with SMTP id hv19mr128949qcb.70.1274377552175; Thu, 20 May 2010 10:45:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.20.207 with HTTP; Thu, 20 May 2010 10:45:32 -0700 (PDT) From: Maharajapuram Ramchandran Date: Thu, 20 May 2010 13:45:32 -0400 Message-ID: Subject: wsdl2java data type mapping discrepancy To: users@cxf.apache.org Content-Type: multipart/alternative; boundary=0016362837d84ea45f04870a2553 X-Virus-Checked: Checked by ClamAV on apache.org --0016362837d84ea45f04870a2553 Content-Type: text/plain; charset=ISO-8859-1 Hello, We are using CXF 2.2.2 to write a webservice and I'm running into this issue: I have 2 operations in the service and for a particular node this is what I have in the XSD. As you can see, the only difference that I have is that the ID is an optional element in the second operation. *Operation1:* *Operation2* When we generate the stubs using wsdl2java, the first one is getting generated as protected int ID; and the second one is protected Integer requestorID; I did go through the Aegis default mapping details ( http://cxf.apache.org/docs/aegis-theory-of-operation.html) and it says that xs:int can be mapped to int or Integer, but I'm curious to know why is this behaving differently. Is there a reason behind this or it is just random? If not, Is there a way to get this generated as an Integer. Or should we change the code manually? Is it a good practice to do that? Would like to know if someone has faced this discrepancy before! Thanks.. --0016362837d84ea45f04870a2553--