You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Suresh (JIRA)" <ji...@apache.org> on 2017/08/15 15:30:00 UTC

[jira] [Comment Edited] (AXIS2-5867) int doent make optional

    [ 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  
> <xs:element name="j" type="xs:int"  nillable ="true"  minOccurs="0"/>
> <xs:element name="i" type="xs:int"  nillable ="true"  minOccurs="0"/>
>  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