title: Specified WSDL is invalid!, Please select a validated *.wsdl/*.xml file on previous page shown on code generator
body: <p>I am using Axis2 codegen wizard to generate java class from wsdl.</p>
  
  <p>My sample wsdl is below </p>
  
  <pre><code>&lt;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"&gt;
  
     &lt;message name="SayHelloRequest"&gt;
        &lt;part name="firstName" type="xsd:string"/&gt;
     &lt;/message&gt;
     &lt;message name="SayHelloResponse"&gt;
        &lt;part name="greeting" type="xsd:string"/&gt;
     &lt;/message&gt;
  
     &lt;portType name="Hello_PortType"&gt;
        &lt;operation name="sayHello"&gt;
           &lt;input message="tns:SayHelloRequest"/&gt;
           &lt;output message="tns:SayHelloResponse"/&gt;
        &lt;/operation&gt;
     &lt;/portType&gt;
  
     &lt;binding name="Hello_Binding" type="tns:Hello_PortType"&gt;
     &lt;soap:binding style="rpc"
        transport="http://schemas.xmlsoap.org/soap/http"/&gt;
     &lt;operation name="sayHello"&gt;
        &lt;soap:operation soapAction="sayHello"/&gt;
        &lt;input&gt;
           &lt;soap:body
              encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
              namespace="urn:examples:helloservice"
              use="encoded"/&gt;
        &lt;/input&gt;
        &lt;output&gt;
           &lt;soap:body
              encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
              namespace="urn:examples:helloservice"
              use="encoded"/&gt;
        &lt;/output&gt;
     &lt;/operation&gt;
     &lt;/binding&gt;
  
     &lt;service name="Hello_Service"&gt;
        &lt;documentation&gt;WSDL File for HelloService&lt;/documentation&gt;
        &lt;port binding="tns:Hello_Binding" name="Hello_Port"&gt;
           &lt;soap:address
              location="http://www.examples.com/SayHello/"&gt;
        &lt;/port&gt;
     &lt;/service&gt;
  &lt;/definitions&gt;
  </code></pre>
  
  <p>when I try to generate java through axis codegen it shows this error :  </p>
  
  <pre><code> Specified WSDL is invalid!, Please select a validated *.wsdl/*.xml file on previous page
  </code></pre>
  
  <p>How to validate my wsdl and what is wrong in my wsdl??</p>