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" ?>
- <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" />
- <wsdl:portType name="HelloWorldServicePortType">
- <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.yahoo.com/