[
https://issues.apache.org/jira/browse/AXIS-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Veithen updated AXIS-2764:
----------------------------------
Labels: array-items (was: )
> document/literal array items do not have same element name as defined in
> dynamically generated wsdl
> ---------------------------------------------------------------------------------------------------
>
> Key: AXIS-2764
> URL: https://issues.apache.org/jira/browse/AXIS-2764
> Project: Axis
> Issue Type: Bug
> Components: Serialization/Deserialization
> Affects Versions: 1.3, 1.4
> Environment: Windows 2003 Server, BEA Weblogic 10
> Reporter: Bobby Lawrence
> Priority: Critical
> Labels: array-items
>
> I have a web service that returns an array of elements.
> The dynamically generated wsdl is correct...each element of the array should
> have the name "item" as defined:
> <complexType name="ArrayOf_SignatureType">
> <sequence>
> <element maxOccurs="unbounded" minOccurs="0" name="item"
> type="tns3:SignatureType"/>
> </sequence>
> </complexType>
> However, when invoking the service, Axis returns each item in the array with
> the element name of its parent! like so:
> <signatures>
> <signatures xsi:type="ns4:ProjSignatureType"
> xmlns:ns4="http://signatures.approvals.apps.mis.jlab.org">
> <abbrev>PROJ</abbrev>
> <projAbbrev>ITGEN</projAbbrev>
> </signatures>
> <signatures xsi:type="ns5:OrgSignatureType"
> xmlns:ns5="http://signatures.approvals.apps.mis.jlab.org">
> <abbrev>ORG</abbrev>
> <orgAbbrev>ITO</orgAbbrev>
> </signatures>
> </signatures>
> This makes it impossible to use Axis 1.3/4 with dynamically generated WSDL's
> because the client expects elements of name "item" and gets elements that are
> of the same name as the parent!
> We need either the WSDL generation to have the correct array element names,
> or the service to create the correct names.
> To work around this issue, I have to change the Axis source code and rebuild
> using Ant or I have to create a WSDL by hand and change it so that the array
> elements are what Axis sends .... (this is difficult to manage in
> development/production enviroments because the wsdlsoap:address always needs
> to be changed and I can't deploy the same WAR in both places without changing
> the WSDL).
> It seems that this has been an open issue since Axis version 1.3.....is
> anyone going to fix?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]