Hi everyone!

Im a new learner of axis2, and basically Im following a tutorial to study it
right now.

My problem is I got a strange exception when I try to generate Java code
from WSDL file
using eclipse's plugin -Axis2 Code Generator .
The exception is " java.lang.reflect.InvocationTargetException"
does anyone know how to fix this?

Thx in advance.

Here is my wsdl code:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
    xmlns:tns="http://www.example.org/helloAxis2/";
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"; name="helloAxis2"
    targetNamespace="http://www.example.org/helloAxis2/";>
    <wsdl:types>
        <xsd:schema
            targetNamespace="http://www.example.org/helloAxis2/";>
            <xsd:element name="Response" type="xsd:string" />
            <xsd:element name="Request" type="xsd:string" />
        </xsd:schema>
    </wsdl:types>
    <wsdl:message name="Response">
        <wsdl:part element="tns:Response"
            name="Response" />
    </wsdl:message>
    <wsdl:message name="Request">
        <wsdl:part element="tns:Request"
            name="Request" />
    </wsdl:message>
    <wsdl:portType name="helloAxis2">
        <wsdl:operation name="sayHello">
            <wsdl:input message="tns:Request" />
            <wsdl:output message="tns:Response" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="helloAxis2SOAP" type="tns:helloAxis2">
        <soap:binding style="document"
            transport="http://schemas.xmlsoap.org/soap/http"; />
        <wsdl:operation name="sayHello">
            <soap:operation
                soapAction="http://localhost:8080/axis2/services/helloAxis2";
/>
            <wsdl:input>
                <soap:body use="literal" />
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="helloAxis2">
        <wsdl:port binding="tns:helloAxis2SOAP" name="helloAxis2SOAP">
            <soap:address location="
http://localhost:8080/axis2/services/helloAxis2"; />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

-- 

  天生万物以养人

                人无一德以报天

Reply via email to