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 "Andreas Veithen (JIRA)" <ji...@apache.org> on 2016/07/09 21:07:11 UTC

[jira] [Updated] (AXIS2-5503) Axis 2 1.6.2. issues with nil="1" attribute in the request

     [ https://issues.apache.org/jira/browse/AXIS2-5503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen updated AXIS2-5503:
-----------------------------------
    Description: 
Dear All.

Currenly i am using axis 2 1.4.1 for generating server side stubs

Now we are actually  planning to migrate to axis 2 1.6.2

But the problem is

after generating the stubs, when i see the differenct between stubs of
axis 2 1.4.1 and  axis 2 1.6.2 below condition is generated(in axis 2
1.6.2) as part of stub generation

{noformat}
 nillableValue =
reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
                                    if ("true".equals(nillableValue)
|| "1".equals(nillableValue)){
                                        throw new
org.apache.axis2.databinding.ADBException("The element:
"+"custShortName" +"  cannot be null");
                                    }
{noformat}

When i was tested, my request are failing because of this condtion
generating for all values in XSD with the below sample request

<urn1:bookName xsi:nil="1"/>(in Axis 2 1.6.2)

can u pelase let me know this is problem with axis 2 1.6.2..if yes,
can u pelase share the bug number and all

can u pelase revert me ASAP

Thanks in advance


Thanks
Phani


  was:
Dear All.

Currenly i am using axis 2 1.4.1 for generating server side stubs

Now we are actually  planning to migrate to axis 2 1.6.2

But the problem is

after generating the stubs, when i see the differenct between stubs of
axis 2 1.4.1 and  axis 2 1.6.2 below condition is generated(in axis 2
1.6.2) as part of stub generation

 nillableValue =
reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
                                    if ("true".equals(nillableValue)
|| "1".equals(nillableValue)){
                                        throw new
org.apache.axis2.databinding.ADBException("The element:
"+"custShortName" +"  cannot be null");
                                    }



When i was tested, my request are failing because of this condtion
generating for all values in XSD with the below sample request

<urn1:bookName xsi:nil="1"/>(in Axis 2 1.6.2)

can u pelase let me know this is problem with axis 2 1.6.2..if yes,
can u pelase share the bug number and all

can u pelase revert me ASAP

Thanks in advance


Thanks
Phani



> Axis 2 1.6.2. issues with nil="1" attribute in the request
> ----------------------------------------------------------
>
>                 Key: AXIS2-5503
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5503
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>            Reporter: phanikumar
>
> Dear All.
> Currenly i am using axis 2 1.4.1 for generating server side stubs
> Now we are actually  planning to migrate to axis 2 1.6.2
> But the problem is
> after generating the stubs, when i see the differenct between stubs of
> axis 2 1.4.1 and  axis 2 1.6.2 below condition is generated(in axis 2
> 1.6.2) as part of stub generation
> {noformat}
>  nillableValue =
> reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
>                                     if ("true".equals(nillableValue)
> || "1".equals(nillableValue)){
>                                         throw new
> org.apache.axis2.databinding.ADBException("The element:
> "+"custShortName" +"  cannot be null");
>                                     }
> {noformat}
> When i was tested, my request are failing because of this condtion
> generating for all values in XSD with the below sample request
> <urn1:bookName xsi:nil="1"/>(in Axis 2 1.6.2)
> can u pelase let me know this is problem with axis 2 1.6.2..if yes,
> can u pelase share the bug number and all
> can u pelase revert me ASAP
> Thanks in advance
> Thanks
> Phani



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org