On Tuesday, May 08, 2012 03:51:05 PM rouble wrote:
> CXF Gurus,
> 
> If I have a java first web service:
> 
> package com.example;
> 
> @WebService
> FooWebService {
>     void updateItem(Item item);
> }
> 
> Where Item lives in:
> 
> package com.somewhere.else;
> 
> public class Item {
> }
> 
> If I deploy this web service, Item's namespace is the same as
> FooWebService's namespace which is "http://example.com";. Is there a global
> config which causes the data objects to have their namespace based on
> their package?

That should be the case.   At least if you put an @XmlType annotation on it.  
Can you whip up an example?

Dan


> I know I can have a package-info.java file in the Item's directory that
> will override it's namespace - but I am wondering if there is a more
> convenient way of achieving this behavior globally?
> 
> tia,
> rouble
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to