I looked into this a bit. First of all I haven't used Axis 1.x for my own projects since 2003, and even then I was not using xmlbeans. I couldn't find any docs on it in the trunk of the build, so you will have to show your build for it.
I have used xmlbeans with axis2 - I wrote the ant guide for it - but that was a long time ago. Anyways, best I can tell Enum support was introduced in axis2 1.7.0. This article below goes into the details a bit. If your wsdl has some of those types then that could be what you are seeing. Hard to say without seeing your wsdl. http://shameerarathnayaka.blogspot.com/2011/09/introducing-enum-support-with-apache.html Regards, Robert On Thu, Dec 26, 2019 at 5:11 AM robertlazarski . <robertlazar...@gmail.com> wrote: > > I need about an hour to look into this question but I haven't > forgotten about it. I expect to respond in the next day or so. > > On Sat, Dec 21, 2019 at 2:20 AM albert kao <albertk...@gmail.com> wrote: > > > > I want to port some axis1 codes to axis2 with WSDL2Java and xmlbeans. > > > > e.g. > > axis1 generated this code: > > public class UserRequest implements java.io.Serializable { > > public java.lang.String getAddrSame() { > > //... > > } > > } > > > > > > I create this build.xml: > > <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" > > classpathref="axisclasspath"> > > <arg line="-uri wsdl/MyService.wsdl"/> > > <arg line="-b"/> > > <arg line="-s"/> > > <arg line="-ss"/> > > <arg line="-sd"/> > > <arg line="-ssi"/> > > <arg line="-ap"/> > > <arg line="-l java"/> > > <arg line="-d xmlbeans"/> > > <arg line="-o ${outdir}"/> > > </java> > > > > > > Then axis2 generate this code: > > public interface UserRequestType extends org.apache.xmlbeans.XmlObject { > > public com.my.AddrSameType.Enum getAddrSame(); > > //... > > > > } > > > > > > How to modify the axis2 build.xml and java codes to generate the same > > function signature? > > i.e. > > "UserRequest" instead of "UserRequestType", > > "class" instead of "interface", > > "java.lang.String" instead of "com.my.AddrSameType.Enum", > > ... > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org