You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Yuri Kr (JIRA)" <ji...@apache.org> on 2014/12/16 21:28:13 UTC

[jira] [Created] (CXF-6159) Apache cxf command line wsdlvalidator does not validate incorrect prefix:elements.

Yuri Kr created CXF-6159:
----------------------------

             Summary: Apache cxf command line wsdlvalidator does not validate incorrect prefix:elements.
                 Key: CXF-6159
                 URL: https://issues.apache.org/jira/browse/CXF-6159
             Project: CXF
          Issue Type: Bug
          Components: Tooling, WS-* Components
    Affects Versions: 3.0.2, 3.0.1
         Environment: windows 7, java 8
            Reporter: Yuri Kr


Apache cxf command line wsdlvalidator does not return any validation error, if I try to validate wsdl document with invalid prefix:element. ("soap:wrongelem" under services in example below).
Command:
wsdlvalidator -s http://schemas.xmlsoap.org/wsdl/soap/ example.wsdl

Wsdl document (example.wsdl):

<definitions name="HelloService"
   targetNamespace="http://www.examples.com/wsdl/HelloService.wsdl"
   xmlns="http://schemas.xmlsoap.org/wsdl/"
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
   xmlns:tns="http://www.examples.com/wsdl/HelloService.wsdl"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema">

   <message name="SayHelloRequest">
      <part name="firstName" type="xsd:string"/>
   </message>
   <message name="SayHelloResponse">
      <part name="greeting" type="xsd:string"/>
   </message>

   <portType name="Hello_PortType">
      <operation name="sayHello">
         <input message="tns:SayHelloRequest"/>
         <output message="tns:SayHelloResponse"/>
      </operation>
   </portType>

   <binding name="Hello_Binding" type="tns:Hello_PortType">
   <soap:binding style="rpc"
      transport="http://schemas.xmlsoap.org/soap/http"/>
   <operation name="sayHello">
      <soap:operation soapAction="sayHello"/>
      <input>
         <soap:body
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
            namespace="urn:examples:helloservice"
            use="encoded"/>
      </input>
      <output>
         <soap:body
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
            namespace="urn:examples:helloservice"
            use="encoded"/>
      </output>
   </operation>
   </binding>

   <service name="Hello_Service">
      <documentation>WSDL File for HelloService</documentation>
      <port binding="tns:Hello_Binding" name="Hello_Port">
         <soap:address location="http://www.examples.com/SayHello/"/>
         <soap:wrongelem location="http://www.examples.com/SayHello/"/>
      </port>
   </service>
</definitions>

Seems to be a bug, or I use commands incorrectly.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)