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 "Harish (JIRA)" <ax...@ws.apache.org> on 2018/06/27 14:46:00 UTC
[jira] [Commented] (AXIS-2250) AXIS array serialization: Incorrect
element names of items in a list
[ https://issues.apache.org/jira/browse/AXIS-2250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16525159#comment-16525159 ]
Harish commented on AXIS-2250:
------------------------------
Though we didnt find the exact reason , but we had resolved the issue by making the element public and removing setter and getter methods for the particular array like details. ThanksĀ
> AXIS array serialization: Incorrect element names of items in a list
> --------------------------------------------------------------------
>
> Key: AXIS-2250
> URL: https://issues.apache.org/jira/browse/AXIS-2250
> Project: Axis
> Issue Type: Bug
> Components: Serialization/Deserialization
> Environment: plattform: i386, OS: WinXP Pro, Java: 1.4.2_06
> Reporter: Denis Schlesinger
> Priority: Critical
> Labels: array-items
> Attachments: Post.zip, beans.zip
>
>
> -Web Service deployed as "wrapped/literal"
> The web service returns a custom bean style class which has an array of another custom bean style class as a member.
> In the WSDL-file the array of the custom type is being described correctly:
> <complexType name="ArrayOf_tns1_EntityTypeBean">
> <sequence>
> <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns1:EntityTypeBean"/>
> </sequence>
> </complexType>
> But when the Java object is being serialized during runtime the array is being transfered to a list whose member elements DO NOT have the name "item" as expected from the WSDL-file. All members of the list have the same name as the list itself:
> <entities>
> <entities>
> ...
> </entities>
> <entities>
> ...
> </entities>
> <entities>
> ...
> </entities>
> </entities>
> But this is expected:
> <entities>
> <item>
> ...
> </item>
> <item>
> ...
> </item>
> <item>
> ...
> </item>
> </entities>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org