You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Amila Suriarachchi <am...@gmail.com> on 2010/01/04 10:12:01 UTC
Re: wsdl:types are blank in generated WSDL with axis2
On Wed, Dec 23, 2009 at 1:24 AM, Soumyajit Paul <so...@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
> >
this parameter should be ServiceClass try this.
<parameter name="ServiceClass">com.fujitsu.test.HelloWorld</parameter>
thanks,
Amila.
> <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/>
> .
>
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/