Page 1 of 1

@Addressing and the @Action annotation

Posted: Mon Feb 23, 2015 2:32 pm
by mujahed
Hi,

I have been trying to understand why there are so many rules around wsaddressing annotation.

Firstly, i realized that if @Addressing annotation is used on interface than it doesn't make any difference to WSDL and hence WS-Addressing is not enabled. We are advised to use @Addressing annotation only on Service Endpoint Implementation Class.

Secondly, WS-Adressing concept tells us that its great to have @Action annotation with addressing to make it more interoperable but to my surprise if we use @Action annotation on class it doesn't make any difference on the WSDL it needs to go on Interface!

Can you please let me know suspense behind this requirement?

Thanks.

Re: @Addressing and the @Action annotation

Posted: Tue Feb 24, 2015 11:56 pm
by fjwalraven
Can you please let me know suspense behind this requirement?
Unfortunately the specs don't say why it is like it is, but for the @Action you could argue that it is used in the wsdl:portType which is related to the SEI.

For the @Addressing annotation it could have been on either the SEI or the SIB, however they specified that it has to be on the SIB. Maybe it is related to the tooling that works with these classes behind the scenes.

Regards,
Frits

Re: @Addressing and the @Action annotation

Posted: Thu Feb 26, 2015 12:05 am
by mujahed
Thanks for the response Frits!