@Addressing and the @Action annotation

Moderators: Site Manager, fjwalraven

Post Reply
mujahed
Posts: 15
Joined: Sat Oct 25, 2014 1:58 am
Contact:

@Addressing and the @Action annotation

Post by mujahed » Mon Feb 23, 2015 2:32 pm

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.

fjwalraven
Posts: 429
Joined: Tue Jul 24, 2012 2:43 am
Contact:

Re: @Addressing and the @Action annotation

Post by fjwalraven » Tue Feb 24, 2015 11:56 pm

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

mujahed
Posts: 15
Joined: Sat Oct 25, 2014 1:58 am
Contact:

Re: @Addressing and the @Action annotation

Post by mujahed » Thu Feb 26, 2015 12:05 am

Thanks for the response Frits!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest