axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "keith chapman" <keithgchap...@gmail.com>
Subject Re: New to axis2, need some help
Date Wed, 01 Oct 2008 01:22:41 GMT
Which version of Axis2/ The eclipse plugin are you using?

Thanks,
Keith.

2008/9/30 Danny LIU <swear812@gmail.com>

> 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>
>
> --
>
>   天生万物以养人
>
>                 人无一德以报天
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org
Mime
View raw message