Dear soumya, I am amarnath from hyderabad and nice to meet u. I need help on axis2. I am new to axis2. When I press the Finish button of the Code Gen Wizard to generate the WSDL file - I get the Error dialoge "java.lang.reflect.InvocationTargetException".
On Wed, Dec 23, 2009 at 1:24 AM, Soumyajit Paul <soumyajit...@yahoo.co.in>wrote: > Hi, > I am using TOMCAT 6.0.20 with axis2 1.5. After deploying the service > with simple HelloWorld class like this > > * > > public > **class* HelloWorld { > > *public* String sayHello(String name){ > > *return* "Hello "+name; > > } > } > > and with Services.xml like this > > > < > service> > > <description> > > This is my first service, which says hello > > </description> > > <parameter name="HelloWorldService">com.fujitsu.test.HelloWorld</parameter > > > > <operation name="sayHello"> > > <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" > > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> > > </operation> > > </ > service> > > I am getting the generated wsdl like the following after deploying > HelloWorldService.aar > file in /webapps/axis2/services > > <?xml version="1.0" encoding="UTF-8" ?> > *-* <http://localhost:8080/axis2/services/HelloWorldService?wsdl#> < > wsdl:definitions xmlns:wsdl="*http://schemas.xmlsoap.org/wsdl/*"xmlns:axis2 > ="*http://ws.apache.org/axis2*" 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:wsaw="* > http://www.w3.org/2006/05/addressing/wsdl*" xmlns:soap="* > http://schemas.xmlsoap.org/wsdl/soap/*" targetNamespace="* > http://ws.apache.org/axis2*"> > * * <wsdl:types /> > * * <wsdl:message name="*sayHelloRequest*" /> > * * <wsdl:message name="*sayHelloResponse*" /> > *-* <http://localhost:8080/axis2/services/HelloWorldService?wsdl#> < > wsdl:portType name="*HelloWorldServicePortType*"> > *-* <http://localhost:8080/axis2/services/HelloWorldService?wsdl#> < > wsdl:operation name="*sayHello*"> > * * <wsdl:input message="*axis2:sayHelloRequest*" wsaw:Action="* > urn:sayHello*" /> > * * <wsdl:output message="*axis2:sayHelloResponse*" wsaw:Action="* > urn:sayHelloResponse*" /> > * * </wsdl:operation> > * * </wsdl:portType> > > Please note that wsdl:type is blank. > > Accordingly it generates incorrect client stub class. Please confirm. > > Thanks > Soumyajit > > > ------------------------------ > The INTERNET now has a personality. YOURS! See your Yahoo! > Homepage<http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/> > . > -- Regards, Amarnath Redddy.G 91-9985923453.