Hi Javier, 2011/8/17 Javier Sánchez <jsreca...@gmail.com>
> Hi Harshana, > > Thx a lot!, what you described was exactly the problem I was facing. Now I > have 2 projects, one for the server and one for the client, the wizard is > working pretty well. > Cool :) Thanks and Regards, Harshana > > Best regards > Javier > > > On Wed, Aug 17, 2011 at 5:38 PM, Harshana Eranga Martin < > harshan...@gmail.com> wrote: > >> Hi Javier, >> >> 2011/8/17 Javier Sánchez <jsreca...@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? >>> >> >> I assume you pointed the same project where your original source file >> exist for stub gneration wizard and you didn't use the custom package name >> option for the stub generation. >> >> If the above mentioned are true, then you will face this given issue >> because you already have the Temp class. Therefore the codegen tool fails to >> replace the Temp class with the generated the Temp interface. >> >> To avoid that you need to do either select a different project/location or >> select custom package for stub generation. >> >> Hope this helps! >> >> Thanks and Regards, >> Harshana >> >>> >>> 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 >> >> > -- 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