I hope this is the right list to report bugs to... I took an Axis generated wsdl file (see attachment) from the stock sample and removed the style attribute from the soap:binding element (all the soap:operation elements include a style). This gets a NPE from WSDL2Java with the stack trace:
java.lang.NullPointerException at org.apache.axis.wsdl.toJava.SymbolTable.populateBindings(Unknown Source) at org.apache.axis.wsdl.toJava.SymbolTable.populate(Unknown Source) at org.apache.axis.wsdl.toJava.SymbolTable.add(Unknown Source) at org.apache.axis.wsdl.toJava.Emitter.emit(Unknown Source) at org.apache.axis.wsdl.toJava.Emitter.emit(Unknown Source) at org.apache.axis.wsdl.WSDL2Java.emit(Unknown Source) at org.apache.axis.wsdl.WSDL2Java.main(Unknown Source)
<?xml version="1.0" encoding="UTF-8"?> <definitions targetNamespace="http://localhost:9090/axis/services/urn:xmltoday-delayed-quotes" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:serviceNS="http://localhost:9090/axis/services/urn:xmltoday-delayed-quotes" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <message name="testResponse"> <part name="testResult" type="xsd:string"/> </message> <message name="testRequest"> </message> <message name="getQuoteResponse"> <part name="getQuoteResult" type="xsd:float"/> </message> <message name="getQuoteRequest"> <part name="arg0" type="xsd:string"/> </message> <portType name="StockQuoteServicePortType"> <operation name="test"> <input message="serviceNS:testRequest"/> <output message="serviceNS:testResponse"/> </operation> <operation name="getQuote"> <input message="serviceNS:getQuoteRequest"/> <output message="serviceNS:getQuoteResponse"/> </operation> </portType> <binding name="StockQuoteServiceSoapBinding" type="serviceNS:StockQuoteServicePortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="test"> <soap:operation soapAction="" style="rpc"/> <input> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:xmltoday-delayed-quotes" use="encoded"/> </input> <output> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:xmltoday-delayed-quotes" use="encoded"/> </output> </operation> <operation name="getQuote"> <soap:operation soapAction="" style="rpc"/> <input> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:xmltoday-delayed-quotes" use="encoded"/> </input> <output> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:xmltoday-delayed-quotes" use="encoded"/> </output> </operation> </binding> <service name="StockQuoteService"> <port binding="serviceNS:StockQuoteServiceSoapBinding" name="StockQuoteServicePort"> <soap:address location="http://localhost:9090/axis/services/urn:xmltoday-delayed-quotes"/> </port> </service> </definitions>