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 "Lino Lendi (Jira)" <ji...@apache.org> on 2019/11/20 15:45:00 UTC

[jira] [Updated] (AXIS2-5972) missing namespace declaration - attribute present in multiple XSD's not parsed correctly

     [ https://issues.apache.org/jira/browse/AXIS2-5972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lino Lendi updated AXIS2-5972:
------------------------------
    Summary: missing namespace declaration - attribute present in multiple XSD's not parsed correctly  (was: missing namespace declaration)

> 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
>
> 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 fixed the Problem now by:
>  java.lang.String tempAttribContentType = reader.getAttributeValue("http://www.w3.org/2005/05/xmlmime",
>  "contentType");
>  
> See also: https://issues.apache.org/jira/browse/AXIS2-5949



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org