[
https://issues.apache.org/jira/browse/AXIS2-5972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Lazarski updated AXIS2-5972:
-----------------------------------
Fix Version/s: 2.0.1
> missing namespace declaration - attribute present in multiple XSD's not
> parsed correctly
> ----------------------------------------------------------------------------------------
>
> Key: AXIS2-5972
> URL: https://issues.apache.org/jira/browse/AXIS2-5972
> Project: Axis2
> Issue Type: Bug
> Components: wsdl
> Affects Versions: 1.7.8
> Environment: debian
> Reporter: Lino Lendi
> Priority: Major
> Fix For: 2.0.1
>
>
> The namespace is missing. The created java File stated:
> java.lang.String tempAttribContentType = reader.getAttributeValue(null",
> "contentType");
>
> While in the wsdl we define a namespace xmlns:cr which links to an xsd in
> which we have:
>
> at the top:
> ...
> xmlns:xmime="http://www.w3.org/2005/05/xmlmime" version="1.0">
> <xs:import namespace="http://www.w3.org/2005/05/xmlmime"
> schemaLocation="http://www.w3.org/2005/05/xmlmime.xsd"/>
>
> and then:
> <xs:complexType name="FileRefType">
> <xs:annotation>
> <xs:documentation xml:lang="DE">.....</xs:documentation>
> </xs:annotation>
> <xs:attribute ref="xmime:contentType" use="required"/>
> <xs:attribute name="filename" type="xs:normalizedString" use="required"/>
> <xs:attribute name="hash" type="xs:normalizedString" use="required"/>
> <xs:attribute name="hashAlgo" type="juspace:HashAlgoEnum" use="required"/>
> <xs:attribute name="fileType" type="cr:FileTypeEnum" use="required"/>
> </xs:complexType>
>
> All attribute besides ref="xmime:contentType" get parsed correctly.
>
> We did a manual workaround by:
> java.lang.String tempAttribContentType =
> reader.getAttributeValue("http://www.w3.org/2005/05/xmlmime",
> "contentType");
>
> For a solid solution to the root cause, please make the java2wsdl robust to
> multiple XSD's containing equally named attributes (or maybe differing only
> in capitalisation).
>
> See also: https://issues.apache.org/jira/browse/AXIS2-5949
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]