axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Soumyajit Paul <soumyajit...@yahoo.co.in>
Subject wsdl:types are blank in generated WSDL with axis2
Date Tue, 22 Dec 2009 19:54:46 GMT
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/
Mime
View raw message