axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Javier Sánchez <jsreca...@gmail.com>
Subject Re: Wizard client stub error
Date Wed, 17 Aug 2011 15:30:40 GMT
Hi Harsana,

Yes, I am using Eclipse wizards.

Regards
Javier

On Wed, Aug 17, 2011 at 4:54 PM, Harshana Eranga Martin <
harshana05@gmail.com> wrote:

> Hi Javier,
>
> I assume you are using Eclipse code generation wizard. Can you confirm?
>
> Thanks and Regards,
> Harshana
>
> 2011/8/17 Javier Sánchez <jsrecacha@gmail.com>
>
>> Hi,
>>
>> I am having problems creating my first  client side stubs (axis2 1.6.0
>> with service and code generator wizards). I am using a simple class:
>>
>> package com.wsexample;
>>
>> public class Temp {
>>      public double c2fConvertion(double cValue) {
>>         return ((cValue * 9.0)/5.0 )+ 32.0;
>>     }
>>
>>
>>     public double f2cConvertion(double fValue) {
>>        return ((fValue - 32.0) * 5.0) / 9.0;
>>     }
>> }
>>
>> and after correctly creating wsdl, when I try to use the wizard wdsl2java
>> to create the  client stub there is one error on the generated TempStub:
>>
>>
>>
>>         public class TempStub extends org.apache.axis2.client.Stub
>>         implements Temp{
>>         protected org.apache.axis2.description.AxisOperation[]
>> _operations;
>> ...
>>
>> "The type Temp cannot be a superinterface of TempStub; a superinterface
>> must be an interface"
>>
>> The wizard is using the simple class Temp as an interface, so the
>> generated stub is incorrect ¿?. Some examples I have found on internet have
>> succeded creating client stub from simple java class as Temp.
>>
>> Has anyone any idea what's is going on?
>>
>> Regards
>> Javier
>>
>
>
>
> --
> Thanks and Regards,
> Harshana Martin
> --
> Harshana Eranga Martin
> Software Engineer,
> WSO2 Inc.
> Web: http://wso2.com
>            http://wso2.org
>
> ECF Committer: http://www.eclipse.org/ecf/
> Blog: http://harshana05.blogspot.com
> Profile: https://www.google.com/profiles/harshana05
>
>

Mime
View raw message