执行 org.apache.axis.wsdl.WSDL2Java 命令时报下面的错,SSOWebServiceWSDL.wsdl文件是别人提供的,哪里出现问题了,我用自己的一个WSDL文件是可以的
WSDLException (at /definitions/schemaBindings): faultCode=INVALID_WSDL: Encounte
red illegal extension element '{http://schemas.xmlsoap.org/wsdl/}schemaBindings'
 in the context of a 'javax.wsdl.Definition'. Extension elements must be in a na
mespace other than WSDL's.:
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseExtensibilityElement(Unknown Sou
rce)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:516)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:495)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
        at java.lang.Thread.run(Unknown Source)
SSOWebServiceWSDL.wsdl<definitions name="urn:SSOServerFetcher"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
              xmlns:tns="urn:sso-server"
              xmlns:typens="urn:sso-server"
targetNamespace="urn:sso-server">
  <!-- type defs -->
<types>
<schema targetNamespace="urn:sso-server" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/
XMLSchema" xmlns:ns="urn:sso-server" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<complexType name="SSO">
<sequence>
<element name="fromCity" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="fromCounty" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="fromState" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="fromContry" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="fromEDI" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="toCity" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="toCounty" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="toState" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="toCity" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="toCounty" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="toState" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="toCountry" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="toEDI" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="etaFrom" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="etaTo" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="etdFrom" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="etdTo" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="doorPickUp" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="doorDelivery" minOccurs="0" maxOccurs="1" type="xsd:string"/>
<element name="cargoReadyDate" minOccurs="0" maxOccurs="1" type="xsd:string"/>
</sequence>
</complexType>
</schema>
</types>
  <!-- message declns -->
<message name="feedback">
<part name="sso" type="typens:SSO" />
<part name="operation" type="xsd:string" />
</message>
<message name="feedbackResult">
<part name="result" type="xsd:boolean" />
<part name="msg" type="xsd:string" />
<part name="result" type="xsd:string" />
</message>
  <!-- port type declns -->
<portType name="SSOServerPortType">
<operation name="FeedBack">
<input message="tns:feedback" />
<output message="tns:feedbackResult" />
</operation>
</portType>
 <!-- binding declns -->
<binding name="SSOServerSoapBinding" type="tns:SSOServerPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="FeedBack" >
<soap:operation soapAction="http://127.0.0.1:8080/CorisInvServer.FeedBack" />
<input>
<soap:body use="encoded" namespace="urn:sso-server" encodingStyle= "http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="urn:sso-server" encodingStyle= "http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding>
<schemaBindings>
<xmlToSmalltalkBinding defaultClassNamespace="Smalltalk" targetNamespace="urn:sso-server" elementFormDefault="qualified" xmlns="urn:visualworks:VWSchemaBinding" xmlns:ns="urn:sso-server" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<object name="SSO" smalltalkClass="SSOWebService">
<element name="FromCity" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="fromCity"/>
<element name="FromCounty" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="fromCounty"/>
<element name="FromState" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="fromState"/>
<element name="FromContry" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="fromContry"/>
<element name="FromEDI" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="fromEDI"/>
<element name="ToCity" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="toCity"/>
<element name="ToCounty" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="toCounty"/>
<element name="ToState" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="toState"/>
<element name="ToCountry" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="toCountry"/>
<element name="ToEDI" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="toEDI"/>
<element name="EtaFrom" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="etaFrom"/>
<element name="EtdFrom" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="etdFrom"/>
<element name="EtdTo" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="etdTo"/>
<element name="DoorPickUp" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="doorPickUp"/>
<element name="DoorDelivery" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="doorDelivery"/>
<element name="CargoReadyDate" minOccurs="0" maxOccurs="1" ref="xsd:string" aspect="cargoReadyDate"/>
</object>
</xmlToSmalltalkBinding>
</schemaBindings>  <!-- service decln -->
<service name="SSOServer">
<port name="SSOServerPortType" binding="tns:SSOServerSoapBinding">
<soap:address location="http://127.0.0.1:8080/feedback"/>
</port>
</service>

</definitions>