• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Incorrectly generated package names using Axis2 wsdl2java

Mat Anthony
Ranch Hand
Posts: 261
  • 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 http://pvo.common.sport.tennis.org/xsd, then the
package name will be org.sport.tennis.common.pvo.xsd

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

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