You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "kevin.shen" <gr...@gmail.com> on 2007/08/06 16:50:59 UTC
JRAStrategry work incorrectly?
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.
--
View this message in context: http://www.nabble.com/JRAStrategry-work-incorrectly--tf4224578.html#a12017615
Sent from the cxf-user mailing list archive at Nabble.com.
RE: JRAStrategry work incorrectly?
Posted by "kevin.shen" <gr...@gmail.com>.
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/%3c9A4696F35B459043970EE4A85A3173900668C7@amer-ems1.IONAGLOBAL.COM%3e
>
> Jervis
>
>> -----Original Message-----
>> From: Liu, Jervis [mailto:jliu@iona.com]
>> Sent: 2007?8?13? 11:04
>> To: cxf-user@incubator.apache.org
>> 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:grave.coder@gmail.com]
>> > Sent: 2007?8?13? 0:49
>> > To: cxf-user@incubator.apache.org
>> > 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.
RE: JRAStrategry work incorrectly?
Posted by "Liu, Jervis" <jl...@iona.com>.
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/%3c9A4696F35B459043970EE4A85A3173900668C7@amer-ems1.IONAGLOBAL.COM%3e
Jervis
> -----Original Message-----
> From: Liu, Jervis [mailto:jliu@iona.com]
> Sent: 2007?8?13? 11:04
> To: cxf-user@incubator.apache.org
> 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:grave.coder@gmail.com]
> > Sent: 2007?8?13? 0:49
> > To: cxf-user@incubator.apache.org
> > 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
RE: JRAStrategry work incorrectly?
Posted by "Liu, Jervis" <jl...@iona.com>.
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:grave.coder@gmail.com]
> Sent: 2007?8?13? 0:49
> To: cxf-user@incubator.apache.org
> 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
Re: JRAStrategry work incorrectly?
Posted by "kevin.shen" <gr...@gmail.com>.
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.
Re: JRAStrategry work incorrectly?
Posted by Willem Jiang <ni...@iona.com>.
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.
>
>