You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Min Yang <mg...@gmail.com> on 2013/02/22 04:31:13 UTC

does cxf support wsdl extension validator

Hi,

Does the cxf supports to wsdl extension wsdl validator like the AXIS2
WSDLExtensionValidator? Take the following wsdl as example, we add the
customized binding <tns:badBinding required="true" uri="http://bad/bad"/> under
binding element, we hope to make the wsdl validation failed, but currently
in cxf 2.6.2, this wsdl can still work fine. Any comments on that?

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<definitions targetNamespace="http://server.respectbinding.jaxws22/"
name="EchoService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:tns="
http://server.respectbinding.jaxws22/" xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/">
  <types>
    <xsd:schema>
      <xsd:import namespace="http://server.respectbinding.jaxws22/"
schemaLocation="EchoService_schema1.xsd"/>
    </xsd:schema>
  </types>
  <message name="echo">
    <part name="parameters" element="tns:echo"/>
  </message>
  <message name="echoResponse">
    <part name="parameters" element="tns:echoResponse"/>
  </message>
  <message name="Exception">
    <part name="fault" element="tns:Exception"/>
  </message>
  <portType name="Echo">
    <operation name="echo">
      <input message="tns:echo"/>
      <output message="tns:echoResponse"/>
      <fault message="tns:Exception" name="Exception"/>
    </operation>
  </portType>
  <binding name="EchoPortBinding" type="tns:Echo">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
    <tns:badBinding required="true" uri="http://bad/bad"/>
    <operation name="echo">
      <soap:operation soapAction=""/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="Exception">
        <soap:fault name="Exception" use="literal"/>
      </fault>
    </operation>
  </binding>
  <service name="EchoService">
    <port name="EchoPort" binding="tns:EchoPortBinding">
      <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
    </port>
  </service>
</definitions>