You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Gennady Shumakher <gs...@gmail.com> on 2009/01/16 17:50:23 UTC

axis 1.4 - Customize wsdl2java class generation?

Hi,

We are using axis 1.4 and I wonder is there a way to customize wsdl2java
class generation process?
Are there any templates that could be modified or everything is buried in
the code?

My main problem is a huge number of warnings when the rest of the project is
in java 5.

Thanks,
Gennady

Re: axis 1.4 - Customize wsdl2java class generation?

Posted by Kamal Chandana Mettananda <lk...@gmail.com>.
Yes, I guess you'll have to.

Kamal
---------------------------------------

http://lkamal.blogspot.com


On Tue, Jan 20, 2009 at 3:29 PM, Gennady Shumakher <gs...@gmail.com>wrote:

> It looks so, though all I wanted was just to add @SuppressWarnings
> annotation to generated Stub.
> The only way I have in mind is to dig into java2wsdl code, modify it and
> recompile...
>
>
> On Tue, Jan 20, 2009 at 11:52 AM, Kamal Chandana Mettananda <
> lkamal@gmail.com> wrote:
>
>> I'm not sure whether there's any workaround for this, and I doubt.
>>
>> ---------------------------------------
>>
>> http://lkamal.blogspot.com
>>
>>
>>
>> On Tue, Jan 20, 2009 at 3:15 PM, Gennady Shumakher <gs...@gmail.com>wrote:
>>
>>> Maybe your turned off warnings. I am working with eclipse and here are
>>> just some examples:
>>>
>>> public static org.apache.axis.encoding.Serializer
>>> getSerializer(...java.lang.Class _javaType....)
>>> Warning: References to generic type Class<T> should be parameterized
>>>
>>> private static java.util.Collection _myOperationsList = new
>>> java.util.ArrayList();
>>> Warning: Collection is a raw type. References to generic type
>>> Collection<E> should be parameterized
>>>
>>> private static java.util.HashMap _table_ = new java.util.HashMap();
>>> Warning: References to generic type HashMap<K,V> should be parameterized
>>>
>>>
>>> On Tue, Jan 20, 2009 at 11:34 AM, Kamal Chandana Mettananda <
>>> lkamal@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I have been using axis 1.4 with java 5, but not sure what warnings you
>>>> are receiving due to java 5?
>>>>
>>>> Kamal
>>>>
>>>> ---------------------------------------
>>>>
>>>> http://lkamal.blogspot.com
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Jan 16, 2009 at 10:20 PM, Gennady Shumakher <
>>>> gshumakher@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> We are using axis 1.4 and I wonder is there a way to customize
>>>>> wsdl2java class generation process?
>>>>> Are there any templates that could be modified or everything is buried
>>>>> in the code?
>>>>>
>>>>> My main problem is a huge number of warnings when the rest of the
>>>>> project is in java 5.
>>>>>
>>>>> Thanks,
>>>>> Gennady
>>>>>
>>>>
>>>>
>>>
>>
>

Re: axis 1.4 - Customize wsdl2java class generation?

Posted by Gennady Shumakher <gs...@gmail.com>.
It looks so, though all I wanted was just to add @SuppressWarnings
annotation to generated Stub.
The only way I have in mind is to dig into java2wsdl code, modify it and
recompile...

On Tue, Jan 20, 2009 at 11:52 AM, Kamal Chandana Mettananda <
lkamal@gmail.com> wrote:

> I'm not sure whether there's any workaround for this, and I doubt.
>
> ---------------------------------------
>
> http://lkamal.blogspot.com
>
>
>
> On Tue, Jan 20, 2009 at 3:15 PM, Gennady Shumakher <gs...@gmail.com>wrote:
>
>> Maybe your turned off warnings. I am working with eclipse and here are
>> just some examples:
>>
>> public static org.apache.axis.encoding.Serializer
>> getSerializer(...java.lang.Class _javaType....)
>> Warning: References to generic type Class<T> should be parameterized
>>
>> private static java.util.Collection _myOperationsList = new
>> java.util.ArrayList();
>> Warning: Collection is a raw type. References to generic type
>> Collection<E> should be parameterized
>>
>> private static java.util.HashMap _table_ = new java.util.HashMap();
>> Warning: References to generic type HashMap<K,V> should be parameterized
>>
>>
>> On Tue, Jan 20, 2009 at 11:34 AM, Kamal Chandana Mettananda <
>> lkamal@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have been using axis 1.4 with java 5, but not sure what warnings you
>>> are receiving due to java 5?
>>>
>>> Kamal
>>>
>>> ---------------------------------------
>>>
>>> http://lkamal.blogspot.com
>>>
>>>
>>>
>>>
>>>
>>> On Fri, Jan 16, 2009 at 10:20 PM, Gennady Shumakher <
>>> gshumakher@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> We are using axis 1.4 and I wonder is there a way to customize wsdl2java
>>>> class generation process?
>>>> Are there any templates that could be modified or everything is buried
>>>> in the code?
>>>>
>>>> My main problem is a huge number of warnings when the rest of the
>>>> project is in java 5.
>>>>
>>>> Thanks,
>>>> Gennady
>>>>
>>>
>>>
>>
>

Re: axis 1.4 - Customize wsdl2java class generation?

Posted by Kamal Chandana Mettananda <lk...@gmail.com>.
I'm not sure whether there's any workaround for this, and I doubt.

---------------------------------------

http://lkamal.blogspot.com


On Tue, Jan 20, 2009 at 3:15 PM, Gennady Shumakher <gs...@gmail.com>wrote:

> Maybe your turned off warnings. I am working with eclipse and here are just
> some examples:
>
> public static org.apache.axis.encoding.Serializer
> getSerializer(...java.lang.Class _javaType....)
> Warning: References to generic type Class<T> should be parameterized
>
> private static java.util.Collection _myOperationsList = new
> java.util.ArrayList();
> Warning: Collection is a raw type. References to generic type Collection<E>
> should be parameterized
>
> private static java.util.HashMap _table_ = new java.util.HashMap();
> Warning: References to generic type HashMap<K,V> should be parameterized
>
>
> On Tue, Jan 20, 2009 at 11:34 AM, Kamal Chandana Mettananda <
> lkamal@gmail.com> wrote:
>
>> Hi,
>>
>> I have been using axis 1.4 with java 5, but not sure what warnings you are
>> receiving due to java 5?
>>
>> Kamal
>>
>> ---------------------------------------
>>
>> http://lkamal.blogspot.com
>>
>>
>>
>>
>>
>> On Fri, Jan 16, 2009 at 10:20 PM, Gennady Shumakher <gshumakher@gmail.com
>> > wrote:
>>
>>> Hi,
>>>
>>> We are using axis 1.4 and I wonder is there a way to customize wsdl2java
>>> class generation process?
>>> Are there any templates that could be modified or everything is buried in
>>> the code?
>>>
>>> My main problem is a huge number of warnings when the rest of the project
>>> is in java 5.
>>>
>>> Thanks,
>>> Gennady
>>>
>>
>>
>

Re: axis 1.4 - Customize wsdl2java class generation?

Posted by Gennady Shumakher <gs...@gmail.com>.
Maybe your turned off warnings. I am working with eclipse and here are just
some examples:

public static org.apache.axis.encoding.Serializer
getSerializer(...java.lang.Class _javaType....)
Warning: References to generic type Class<T> should be parameterized

private static java.util.Collection _myOperationsList = new
java.util.ArrayList();
Warning: Collection is a raw type. References to generic type Collection<E>
should be parameterized

private static java.util.HashMap _table_ = new java.util.HashMap();
Warning: References to generic type HashMap<K,V> should be parameterized


On Tue, Jan 20, 2009 at 11:34 AM, Kamal Chandana Mettananda <
lkamal@gmail.com> wrote:

> Hi,
>
> I have been using axis 1.4 with java 5, but not sure what warnings you are
> receiving due to java 5?
>
> Kamal
>
> ---------------------------------------
>
> http://lkamal.blogspot.com
>
>
>
>
>
> On Fri, Jan 16, 2009 at 10:20 PM, Gennady Shumakher <gs...@gmail.com>wrote:
>
>> Hi,
>>
>> We are using axis 1.4 and I wonder is there a way to customize wsdl2java
>> class generation process?
>> Are there any templates that could be modified or everything is buried in
>> the code?
>>
>> My main problem is a huge number of warnings when the rest of the project
>> is in java 5.
>>
>> Thanks,
>> Gennady
>>
>
>

Re: axis 1.4 - Customize wsdl2java class generation?

Posted by Kamal Chandana Mettananda <lk...@gmail.com>.
Hi,

I have been using axis 1.4 with java 5, but not sure what warnings you are
receiving due to java 5?

Kamal

---------------------------------------

http://lkamal.blogspot.com




On Fri, Jan 16, 2009 at 10:20 PM, Gennady Shumakher <gs...@gmail.com>wrote:

> Hi,
>
> We are using axis 1.4 and I wonder is there a way to customize wsdl2java
> class generation process?
> Are there any templates that could be modified or everything is buried in
> the code?
>
> My main problem is a huge number of warnings when the rest of the project
> is in java 5.
>
> Thanks,
> Gennady
>