axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5831) nillable=“true” and minOccurs=“1” field is getting ignored in Axis2 version 1.7.4
Date Wed, 25 Jan 2017 23:28:26 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-5831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15838800#comment-15838800
] 

Andreas Veithen commented on AXIS2-5831:
----------------------------------------

Please attach the complete WSDL (or a stripped down version if it is copyrighted) to reproduce
the issue.

> nillable=“true” and minOccurs=“1” field is getting ignored in Axis2 version 1.7.4
> ---------------------------------------------------------------------------------
>
>                 Key: AXIS2-5831
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5831
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.7.4
>            Reporter: Kunal Sachdeva
>
> Server expects us to send the "nillable" field even if it is empty because minOccurs="1"
but Axis2 version 1.7.4 ignores those fields. Although the same works with version 1.6.2.
> Eg.
> **1.6.2**
> {code}
>         <?xml version="1.0" encoding="UTF-8"?><ns8:updateParticipantInfo>
>       <ns8:parts>
>         <ns3:PartId>1</ns3:PartId>
>         <ns3:Muted >true</ns3:Muted>
>         <ns3:ParticipantCode xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="1"/>
>         <ns3:Talk  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1"/>
>         <ns3:Tag xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1"/>
>         <ns3:ConferenceId  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1"/>
>         <ns3:BridgeId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1"/>
>         <ns3:Type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1"/>
>         <ns3:Name xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1"/>
>         <ns3:Phone xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1"/>
>          </ns8:parts>
>     </ns8:updateParticipantInfo>
> {code}
> **1.7.4**
>    
> {code}
>      <ns8:updateParticipantInfo >
>       <ns8:parts>
>         <ns3:PartId >1</ns3:PartId>
>         <ns3:Muted >true</ns3:Muted>
>         </ns8:parts>
>     </ns8:updateParticipantInfo>
>        </soapenv:Body>
>     </soapenv:Envelope>
> {code}
> You can see from above that all the fields except PartId and Muted are getting ignored
since they are nil.
> Please can someone help me with this?
> **Complete schema** : -->
> {code}
>      <complexType name="ParticipantInfo">
>             <sequence>
>                 <element name="PartId" nillable="true" type="xsd:string"/>
>                 <element name="Muted" nillable="true" type="xsd:boolean"/>
>                 <element name="ParticipantCode" nillable="true" type="xsd:string"/>
>                 <element name="Talk" nillable="true" type="xsd:boolean"/>
>                 <element name="Tag" nillable="true" type="xsd:string"/>
>                 <element name="ConferenceId" nillable="true" type="xsd:string"/>
>                 <element name="BridgeId" nillable="true" type="xsd:string"/>
>                 <element name="Type" nillable="true" type="xsd:int"/>
>                 <element name="Name" nillable="true" type="xsd:string"/>
>                 <element name="Phone" nillable="true" type="xsd:string"/>
>                 <element name="OperatorRequest" nillable="true" type="xsd:boolean"/>
>                 <element name="SubconferenceId" nillable="true" type="xsd:int"/>
>                 <element name="State" nillable="true" type="xsd:int"/>
>                 <element name="PositionOnQueue" nillable="true" type="xsd:int"/>
>                 <element name="SpecificParameters" nillable="true" type="util:Properties"/>
>                 <element name="UniqueKey" nillable="true" type="xsd:string"/>
>                 <element name="Extension" nillable="true" type="xsd:string"/>
>                 <element name="BridgePartId" nillable="true" type="xsd:string"/>
>             </sequence>
>         </complexType>
> {code}
> If minOccurs is not specified, by default it is "1".
> We generated the code using the below arguements :
> {code}
> '-Euwc', '-s', '-u', '-g'
> {code}



--
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


Mime
View raw message