I am using wsimport to generate client stubs for JAX-WS webservice calls
wsimport
has the -p
option which allows to customise name of package.
For eg. if the WSDL has namespace of com.abc, then you can subsitute com.abc by com.pqr by calling wsimport
with the -p com.pqr
command line.
However, this works fine only if there is only one namespace used in the wsdl.
If there are multiple namespaces in the wsdl, is there a way to replace each of them with a different package name.
For eg. if I want namespace com.abc.s1 to be replaced by namespace com.pqr.s1 & namespace com.abc.s2 to be replaced by namespace com.pqr.s2.
If I use wsimport -p com.pqr.s1
, it puts all the generated classes into com.pqr.s1
Is there a way to achieve what I want?