Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 886CA2004F3 for ; Tue, 15 Aug 2017 17:30:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 86DC5166D35; Tue, 15 Aug 2017 15:30:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CC0E9166D34 for ; Tue, 15 Aug 2017 17:30:09 +0200 (CEST) Received: (qmail 96103 invoked by uid 500); 15 Aug 2017 15:30:03 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 96094 invoked by uid 99); 15 Aug 2017 15:30:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Aug 2017 15:30:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C82BCC0118 for ; Tue, 15 Aug 2017 15:30:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id G738i8tUJ8EA for ; Tue, 15 Aug 2017 15:30:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 44D7A5FB54 for ; Tue, 15 Aug 2017 15:30:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7D48DE023B for ; Tue, 15 Aug 2017 15:30:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 363792140B for ; Tue, 15 Aug 2017 15:30:00 +0000 (UTC) Date: Tue, 15 Aug 2017 15:30:00 +0000 (UTC) From: "Suresh (JIRA)" To: java-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (AXIS2-5867) int doent make optional MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 15 Aug 2017 15:30:10 -0000 [ https://issues.apache.org/jira/browse/AXIS2-5867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16127374#comment-16127374 ] Suresh edited comment on AXIS2-5867 at 8/15/17 3:29 PM: -------------------------------------------------------- Hi Joerg, Thanks for your reply. I accepted your comment as int types have always value . as per your last line states to use objects for optional values. in this case I tried with java.lang.Integer wrapper object, its also doent make optional. It is only possible with other integer Object is java.math.BigInteger, its make optional,its not make sense for using bigInteger in my class. my quetion is why java.lang.Integer object does make optional ? was (Author: kammasuresh): Hi Joerg, Thanks for your reply. I accepted your comment as int types have always value . as per your last line states to use objects for optional values. in this case I tried with java.lang.Integer wrapper object, its also doent make optional. It is only possible with other integer Object is java.math.BigInteger, its make optional,its not make sense for using bigInter in my class. my quetion is why java.lang.Integer object does make optional ? > int doent make optional > ------------------------ > > Key: AXIS2-5867 > URL: https://issues.apache.org/jira/browse/AXIS2-5867 > Project: Axis2 > Issue Type: Bug > Components: jaxws > Affects Versions: 1.7.6 > Environment: axis 2 and tomcat and windows and unix as well > Reporter: Suresh > > I am creating java2wsdl as web service and create method in service add(int i, int j), I want to create int i and int j as optional , I dont want to make mandatory. I verified and searched lot of foroums and no of website's. it was not getting int as optional, even though, i tried with Integer wrapper class, that one also not able to do make nillable=true in wsdl and cant make as optional. > I am expecting below > in my service class add(int i , int j) > I want to see int i and int j as optional > > > How do i create above? -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org