• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Incorrectly generated package names using Axis2 wsdl2java

 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:-
org.sport.tennis.common.service.impl

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:-
org.sport.tennis.common.pvo.xsd
and
org.sport.tennis.common.vo.xsd

I need the generated pvo's and vo's to have the following package names respectively:-
org.sport.tennis.common.pvo
and
org.sport.tennis.common.vo

In my wsdl I have noticed that the following has been defined:-
<wsdl:definitions targetNamespace
xmlns:ax212="http://pvo.common.tennis.sport.org/xsd"
xmlns:ax22="http://vo.common.tennis.sport.org/xsd"

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

Can anybody help me solve this problem. >
reply
    Bookmark Topic Watch Topic
  • New Topic