cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Sosnoski (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CXF-2679) wsdlvalidator does not allow extensibility elements
Date Fri, 19 Feb 2010 01:08:27 GMT

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

Dennis Sosnoski closed CXF-2679.
--------------------------------

    Resolution: Not A Problem

As Dan pointed out in CXF-2680, the schema in the WSDL 1.1 description is not the one in use.
Which makes the whole concept of "validating" WSDL a bit suspect, at best, but it's a worthwhile
goal.

> 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.


Mime
View raw message