You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Damon <bl...@126.com> on 2011/06/15 17:18:28 UTC

The jax-ws annotations need to add both on SEI and the concrete service class

Like targetNamespace, if only add it to SEI, it didn't work. I have to add it to both SEI and the class.
But the CXF user guide said that the only nessesary annotation for concrete class is endpointinterface.
 
So is there any other annotations need us to add them both on SEI and the service class?

Re: The jax-ws annotations need to add both on SEI and the concrete service class

Posted by Daniel Kulp <dk...@apache.org>.
On Wednesday, June 15, 2011 11:18:28 PM Damon wrote:
> Like targetNamespace, if only add it to SEI, it didn't work. I have to add
> it to both SEI and the class. But the CXF user guide said that the only
> nessesary annotation for concrete class is endpointinterface.

Technically, it's not required.   However, if not specified, it generates a 
default based on the package name which is likely not what you want.   

> So is there any other annotations need us to add them both on SEI and the
> service class?

Honestly, you should specify the targetNamespace, the portName and serviceName 
on the service class, and name on the SEI.   That would remove the 
ambiguities.


-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com