[
https://issues.apache.org/jira/browse/AXIS2-5831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Lazarski resolved AXIS2-5831.
------------------------------------
Resolution: Incomplete
No response from OP asking for more info.
> 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
> Priority: Major
>
> 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
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]