Hi all,
I am using Axis 1.5 to create a client to Microsoft .net  web services ,it
has a notification operation.
Here is the simple WSDL I am using to try to codegen.


<wsdl:definitions xmlns:axis2="http://quickstart.samples/"; xmlns:soap12="
http://schemas.xmlsoap.org/wsdl/soap12/"; xmlns:http="
http://schemas.xmlsoap.org/wsdl/http/"; xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:ns="
http://quickstart.samples/xsd"; xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/"; targetNamespace="
http://quickstart.samples/";>
<wsdl:types>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://quickstart.samples/xsd";>
        <xs:element name="notify">
            <xs:complexType>
                <xs:sequence>
                <xs:element name="title" nillable="true" type="xs:string" />
                <xs:element name="message" nillable="true" type="xs:string"
/>
                </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>
    <wsdl:message name="notifyMessage">
        <wsdl:part name="part1" element="ns:notify" />
    </wsdl:message>
    <wsdl:portType name="StockQuoteServicePortType">
        <wsdl:operation name="notify">
            <wsdl:output message="notifyMessage" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="StockQuoteServiceSOAP11Binding"
type="StockQuoteServicePortType">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
style="document" />

        <wsdl:operation name="notify">
            <soap:operation soapAction="urn:notify" style="document" />

            <wsdl:output>
                <soap:body use="literal" namespace="
http://quickstart.samples/"; />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="StockQuoteServiceSOAP12Binding"
type="StockQuoteServicePortType">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http";
style="document" />

        <wsdl:operation name="notify">
            <soap12:operation soapAction="urn:notify" style="document" />

            <wsdl:output>
                <soap12:body use="literal" namespace="
http://quickstart.samples/"; />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="StockQuoteService">
        <wsdl:port name="StockQuoteServiceSOAP11port"
binding="StockQuoteServiceSOAP11Binding">
            <soap:address location="
http://localhost:8080/axis2/services/StockQuoteService"; />
        </wsdl:port>
    </wsdl:service>

</wsdl:definitions>

I'm going to genarate client side code using WSDL2java command,
but i got this kind of error
[ERROR]
java.lang.NullPointerException
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperations(WSDL11ToAxisServiceBuilder.java:1340)
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType(WSDL11ToAxisServiceBuilder.java:591)
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:468)
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:362)
        at
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:396)
        at
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
        ... 2 more
Caused by: java.lang.NullPointerException
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperations(WSDL11ToAxisServiceBuilder.java:1340)
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType(WSDL11ToAxisServiceBuilder.java:591)
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:468)
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:362)
        ... 4 more


Please help us in resolving this issue.

thanks.
shivantha.

Reply via email to