axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manuel Darveau" <manueldarv...@gmail.com>
Subject Re: WSDL2JAVA options
Date Tue, 18 Nov 2008 14:24:36 GMT
Hi,

You could import the generated classes to eclipse and format the whole code
using the format tool.
This can remove unneeded package prefix and do various formatting based on
your preferences.

Manuel

On Tue, Nov 18, 2008 at 8:18 AM, ibrahim demir <ibrahimdemire@yahoo.com>wrote:

> Hi All;
>
> I'm creating my classes with axis2 wsdl2java tool. But teh resultant
> classes are hard to read. It adds the class package name before every
> element. Is there any option to stop them. Or do you have any way to get rid
> of them quickly.
>
> As an example:
>
>     private static java.lang.String generatePrefix(java.lang.String
> namespace) {
>            if(namespace.equals("urn:cs.com.tr/banking")){
>                return "";
>            }
>            return
> org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
>        }
>
>
> I do not want to see java.lang.String in front of generatePrefix method.
>
> Yours.
>
> Ibrahim DEMIR
> CyberSoft Yazilim Muh.
> http://www.ibrahimdemir.org
>
>
>
>
>
>

Mime
View raw message