[ https://issues.apache.org/jira/browse/CXF-2679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835447#action_12835447 ]
Daniel Kulp commented on CXF-2679: ---------------------------------- With the "official" schema at http://schemas.xmlsoap.org/wsdl/ the rules are different in that the tExtensibleDocumented type that all the types extend from only allows the extensions at the top of the element, not the bottom. > wsdlvalidator does not allow extensibility elements > --------------------------------------------------- > > Key: CXF-2679 > URL: https://issues.apache.org/jira/browse/CXF-2679 > Project: CXF > Issue Type: Bug > Components: Tooling > Affects Versions: 2.2.5 > Reporter: Dennis Sosnoski > Attachments: library-username.wsdl > > > When running WSDLToJava with the -validate flag a WSDL with WS-Policy > extensions following the <wsdl:service> element is rejected, with the message: > [java] WSDLToJava Error: > [java] line 258 column 64 of > file:/home/dennis/devworks/jws13/jws13code/library-username.wsdl: > cvc-complex-type.2.4.a: Invalid content was found starting with element > 'wsp:Policy'. One of '{"http://schemas.xmlsoap.org/wsdl/":import, > "http://schemas.xmlsoap.org/wsdl/":types, > "http://schemas.xmlsoap.org/wsdl/":message, > "http://schemas.xmlsoap.org/wsdl/":portType, > "http://schemas.xmlsoap.org/wsdl/":binding, > "http://schemas.xmlsoap.org/wsdl/":service}' is expected. > The WSDL 1.1 schema definition has this definition for the wsdl:definitions > type: > <complexType name="definitionsType"> > <complexContent> > <extension base="wsdl:documented"> > <sequence> > <element ref="wsdl:import" minOccurs="0" > maxOccurs="unbounded"/> > <element ref="wsdl:types" minOccurs="0"/> > <element ref="wsdl:message" minOccurs="0" > maxOccurs="unbounded"/> > <element ref="wsdl:portType" minOccurs="0" > maxOccurs="unbounded"/> > <element ref="wsdl:binding" minOccurs="0" > maxOccurs="unbounded"/> > <element ref="wsdl:service" minOccurs="0" > maxOccurs="unbounded"/> > <any namespace="##other" minOccurs="0" maxOccurs="unbounded"> > <annotation> > <documentation>to support extensibility elements > </documentation> > </annotation> > </any> > </sequence> > <attribute name="targetNamespace" type="uriReference" > use="optional"/> > <attribute name="name" type="NMTOKEN" use="optional"/> > </extension> > </complexContent> > </complexType> > which allows for elements from other namespaces following the wsdl:service > element. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.