cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christofer Dutz (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-2123) Generated Schemas are missing import statements
Date Fri, 20 Mar 2009 12:48:50 GMT

    [ https://issues.apache.org/jira/browse/CXF-2123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683869#action_12683869
] 

Christofer Dutz commented on CXF-2123:
--------------------------------------

It seems that the Problem is in the class BeanType class is missing an implementation of the
"usesUtitlyTypes()"-method. 

This method is implemented to return "false" in Type and is not overriden in BeanType.



> Generated Schemas are missing import statements
> -----------------------------------------------
>
>                 Key: CXF-2123
>                 URL: https://issues.apache.org/jira/browse/CXF-2123
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2
>            Reporter: Christofer Dutz
>
> In CXF 2.1.4 schemas generated by Aegis contained import statements to import other generated
schemas.
> Even if these statements might be optional from a schema perspective, these statements
are needed when processing the SOAP messages in an Adobe Flex SOAPDecoder.
> To make everything a litte clearer:
> Old WSDL:
> <xsd:schema xmlns:ns1="http://impl.common.pgm.model.pgm.tiller.upw.de" 
>    xmlns:tns="http://credentials.pgm.model.pgm.tiller.upw.de" 
>    attributeFormDefault="qualified" 
>    elementFormDefault="qualified" 
>    targetNamespace="http://credentials.pgm.model.pgm.tiller.upw.de">
>    <import xmlns="http://www.w3.org/2001/XMLSchema"
> namespace="http://impl.common.pgm.model.pgm.tiller.upw.de"/>
>    <xsd:complexType abstract="true" name="PgmCredential">
>       <xsd:complexContent>
>          <xsd:extension base="ns1:AbstractDatabaseObject">
>             <xsd:sequence>
>                <xsd:element minOccurs="0" name="name" nillable="true"
> type="xsd:string"/>
>             </xsd:sequence>
>          </xsd:extension>
>       </xsd:complexContent>
>    </xsd:complexType>
>    <xsd:complexType name="ArrayOfPgmCredential">
>       <xsd:sequence>
>          <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="PgmCredential" nillable="true" type="tns:PgmCredential"/>
>       </xsd:sequence>
>    </xsd:complexType>
>    <xsd:complexType name="PgmUsernamePasswordCredential">
>       <xsd:complexContent>
>          <xsd:extension base="tns:PgmCredential">
>             <xsd:sequence>
>                <xsd:element minOccurs="0" name="password" nillable="true"
> type="xsd:string"/>
>                <xsd:element minOccurs="0" name="username" nillable="true"
> type="xsd:string"/>
>             </xsd:sequence>
>          </xsd:extension>
>       </xsd:complexContent>
>    </xsd:complexType>
>    <xsd:complexType name="PgmX509CertificateCredential">
>       <xsd:complexContent>
>          <xsd:extension base="tns:PgmCredential">
>             <xsd:sequence>
>                <xsd:element minOccurs="0" name="certificate" nillable="true"
> type="xsd:string"/>
>             </xsd:sequence>
>          </xsd:extension>
>       </xsd:complexContent>
>    </xsd:complexType>
> </xsd:schema>
> New WSDL:
> <xsd:schema xmlns:ns0="http://impl.common.pgm.model.pgm.tiller.upw.de" 
>     xmlns:tns="http://credentials.pgm.model.pgm.tiller.upw.de" 
>     attributeFormDefault="qualified" 
>     elementFormDefault="qualified" 
>     targetNamespace="http://credentials.pgm.model.pgm.tiller.upw.de">
>     <xsd:complexType abstract="true" name="PgmCredential">
>         <xsd:complexContent>
>             <xsd:extension base="ns0:AbstractDatabaseObject">
>                 <xsd:sequence>
>                     <xsd:element minOccurs="0" name="name" nillable="true"
> type="xsd:string"/>
>                 </xsd:sequence>
>             </xsd:extension>
>         </xsd:complexContent>
>     </xsd:complexType>
>     <xsd:complexType name="ArrayOfPgmCredential">
>         <xsd:sequence>
>             <xsd:element maxOccurs="unbounded" minOccurs="0"
> name="PgmCredential" nillable="true" type="tns:PgmCredential"/>
>         </xsd:sequence>
>     </xsd:complexType>
>     <xsd:complexType name="PgmUsernamePasswordCredential">
>         <xsd:complexContent>
>             <xsd:extension base="tns:PgmCredential">
>                 <xsd:sequence>
>                     <xsd:element minOccurs="0" name="password"
> nillable="true" type="xsd:string"/>
>                     <xsd:element minOccurs="0" name="username"
> nillable="true" type="xsd:string"/>
>                 </xsd:sequence>
>             </xsd:extension>
>         </xsd:complexContent>
>     </xsd:complexType>
>     <xsd:complexType name="PgmX509CertificateCredential">
>         <xsd:complexContent>
>             <xsd:extension base="tns:PgmCredential">
>                 <xsd:sequence>
>                     <xsd:element minOccurs="0" name="certificate"
> nillable="true" type="xsd:string"/>
>                 </xsd:sequence>
>             </xsd:extension>
>         </xsd:complexContent>
>     </xsd:complexType>
> </xsd:schema>
> The problem is the missing:
>    <import xmlns="http://www.w3.org/2001/XMLSchema"
> namespace="http://impl.common.pgm.model.pgm.tiller.upw.de"/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message