I found that the bug is fixed in cxf 2.0.1


Liu, Jervis wrote:
> 
> BTW, this is similar to a discussion we had before [1]. I.e., which method
> annotation is supposed to take effect, the annotation in impl class or the
> annotation in SEI.
> 
> [1].
> http://mail-archives.apache.org/mod_mbox/incubator-cxf-user/200707.mbox/[EMAIL
>  PROTECTED]
> 
> Jervis
> 
>> -----Original Message-----
>> From: Liu, Jervis [mailto:[EMAIL PROTECTED]
>> Sent: 2007?8?13? 11:04
>> To: [email protected]
>> Subject: RE: JRAStrategry work incorrectly?
>> 
>> 
>> 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
>> 
> 
> ----------------------------
> IONA Technologies PLC (registered in Ireland)
> Registered Number: 171387
> Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JRAStrategry-work-incorrectly--tf4224578.html#a12210551
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to