cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eamonn Dwyer" <>
Subject RE: wsdl2java -p option change
Date Mon, 30 Mar 2009 17:05:30 GMT
Hi Dan
The explicit mapping from namespace to package name works for me.
I've created a to change the message in Jira for it in cxf, CXF-2144.

I can volunteer for the patch too

2.1.4 did allow the unqualified specifying of package name for me


-----Original Message-----
From: Daniel Kulp [] 
Sent: 30 March 2009 15:11
Cc: Eamonn Dwyer
Subject: Re: wsdl2java -p option change


On Mon March 30 2009 9:25:23 am Eamonn Dwyer wrote:
> It looks like the use of the -p flag with wsdl2java has changed dor
> 2.2. Now it reports
> "-p option cannot be used when wsdl contains mutiple schemas"
> for my wsdl, even though the wsdl compiles with version 2.1.4.

Hmm...  I thought that message went in for 2.1.4 as well.  I'm surprised
worked for 2.1.4.

Actually, that error message should change a bit.   -p CAN be used if
provide a unique package for each namespace:

-p  -p

> The wsdl in question does import other schema, so I reckon that this
> causing the error to be reported. Is that correct?

If there are schemas in multiple namespaces, then it should report that

> If this is the case, is it really valid to say I cannot specify a
> package name now when I import a schema. I can understand it when the
> schema is a 3rd party one, but what if I just have simply factored out
> some schema from the wsdl file? 

Basically, if you have multiple schemas, you NEED to specify a unique
name for each schema so the and for
schema is put in a unique location instead of overwriting itself.

Daniel Kulp

View raw message