Akaine,

As default package you mean the targetNamespace of the wsdl/xsd, right?
I guess you can accomplish this with -p option. See the example:

wsdl2java -fe jaxws21 -p
http://namespace/myDefaulttargetNamespace=com.example.default -p
http://namespace/otherNamespace=com.example.other -d ws -sn MyService -all
my.wsdl


Diogo Sant'Ana


Diogo Sant'Ana


On Wed, Apr 9, 2014 at 1:32 PM, akaine <[email protected]> wrote:

> Hello,
>
> There is a problem I've been investigating for the last week related to CXF
> dynamic client (DynamicClientFactory).
>
> I have a web service generated using SAP VirtualInterface xmls which has a
> java.lang.String[] and java.lang.Exception types variables defined at some
> point . As a good boy, CXF dynamic client generates classes accordingly
> putting the Exception and ArrayOfString objects inside a java.lang package.
> This, of course, causes the "Prohibited package name: java.lang" exception.
>
> As I ran through the source code and docs I realized that since the
> client's
> objects are being generated by wsdl2java utility it would be much easier to
> use the utility's "package-name" parameter instead of altering the CXF's
> schemas processing components (that I've been trying to do for the last few
> days). In theory this parameter would resolve my problem but I'm unable to
> find where it's being called.
>
> As an alternative, I noticed that almost every Eclipse/Netbeans client
> generation plugin asks for the default package so maybe there is a
> parameter
> supported by the CXF API that I could use to pass this param to the
> wsdl2java utility.
>
> Any ideas?
>
> Thanks and Best Regards
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Set-default-package-for-objects-generated-by-the-dynamic-client-tp5742640.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

Reply via email to