Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Incorrectly generated package names using Axis2 wsdl2java  RSS feed

Mat Anthony
Ranch Hand
Posts: 262
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm trying to generate Stub & Skeleton code using the Axis2 wsdl2java command in antscript.

Reading the spec, it states that by default Value:If you don't provide a package name,
the tool will use the target namespace of the source WSDL file to come up with a package name.
For example, if the target namespace is, then the
package name will be

I placed the following in my antscript (i.e.within wsdl2java call)
<!-- Package structure for generated classes -->
<arg value="-p"/>
<arg value=""/>

My Skeleton and Stubs were successfully generated under the package:-

All of the generated vo's and pvo's that are used by the Skeleton and Stubs have
been incorrectly packaged (i.e. xsd name added) as follows:-

I need the generated pvo's and vo's to have the following package names respectively:-

In my wsdl I have noticed that the following has been defined:-
<wsdl:definitions targetNamespace

hence probably the reason for my pvo & vo package problem.

Can anybody help me solve this problem. >
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!