Kevin, internally CXF follows JAX-WS spec to process annotations. JAX-WS 
section 3.3, "if the WebService annotation on the class under consideration has 
a endpointInterface element, then the interface referred by this element is for 
all purposes the SEI associated with the class.". I.e., if you have 
@WebService(endpointInterface = "xyz") specified correctly in your impl class, 
the annotation defined in interface will be used, otherwise it is the impl 
class being used.


Cheers,
Jervis


> -----Original Message-----
> From: kevin.shen [mailto:[EMAIL PROTECTED]
> Sent: 2007?8?13? 0:49
> To: [email protected]
> Subject: Re: JRAStrategry work incorrectly?
> 
> 
> 
> willem, i can export the web service successful when i wrote 
> the anotations
> in implement class.
> but i am confused that why those factories have different 
> ways to proccess
> the service class.
> i think the factory must get all anntations from the interface class.
> 
> Jiang, Ning (Willem) wrote:
> > 
> > Hi Kevin,
> > 
> > I think you just make sure the service class which you 
> passed to the 
> > JaxWsserviceFactoryBean get the right jra annotation.
> > That can address your concern :)
> > 
> > Willem.
> > kevin.shen wrote:
> >> if i write the jra annotations in interface , and 
> JaxWsserviceFactoryBean
> >> use
> >> implementor to get annotations' meta data, it can not recognize the
> >> method
> >> correctly.
> >> if i write the the jra annotation in implementor, and
> >> JaxWsServerFactorybean
> >> use interface  to get annotations' meta data, it can not 
> recognize the
> >> method correctly too.
> >>
> >>  so i need to write jra annotations in both interface and 
> implementor, 
> >> but
> >> it is so ugly.
> >>  who can tell me the correct way to write the jra 
> annotations? Thanks
> >> very
> >> much.
> >>
> >>   
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/JRAStrategry-work-incorrectly--tf4224578
.html#a12115813
Sent from the cxf-user mailing list archive at Nabble.com.

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Reply via email to