permaculture playing cards*
The moose likes Web Services and the fly likes WSDL2JAVA Apache axis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL2JAVA Apache axis" Watch "WSDL2JAVA Apache axis" New topic
Author

WSDL2JAVA Apache axis

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

Hi,

I have an enumeration field in a XML complex type element. The Apache Axis tool generates a java class whose name contains "_" character. How do I avoid it?


Groovy
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Can you explain a bit more with code fragments ??
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898



The java bean generated corresponding to enumeration is WSState_currentState.java. I want the name of be WSStateCurrentState with no "_".

Thanks.

Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
This is pure guessing, but have you tried using CurrentState instead of currentState?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

I just tried, it generated WSState_CurrentState.java instead of
WSState_currentState.java.

Anyways, thanks for your help.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Let's try the easy way out...
Do you need to have the class name without the underscore?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

Do you need to have the class name without the underscore?


The class name looks more elegant when there is no underscore.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Oh, in that case I'd suggest concentrating on something more important
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

Originally posted by Lasse Koskela:
Oh, in that case I'd suggest concentrating on something more important


Exactly. I completed all my code and testing and then decided to remove the underscore but it doesn't seem to go.
Apache should provide more control to the developers.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Pradeep Bhat:

Apache should provide more control to the developers.

Apache Axis is a open source tool, and if you are very keen on underscore then this CVS link on WSDL2Java.java may help you.
Cheers
Balaji
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSDL2JAVA Apache axis
 
Similar Threads
web services development tools
Anyone use Apache Axis
Web Services API
does jboss has web service feature?
EAR file