Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migration to Spring WS 2.0 failed due to lack of bean endpoint mapping?

We used the PayloadRootQNameEndpointMapping to map endpoint scripts (based on a scripting language like groovy or something else) to a given root QName. We recently tried to migrate spring ws to version 2.0. The javadoc of the PayloadRootQNameEndpointMapping shows that the class is marked as deprecated.

PayloadRootQNameEndpointMapping Deprecated as of Spring Web Services 2.0, in favor of PayloadRootAnnotationMethodEndpointMapping

Since annotations are static we can't provide a dynamic concept for scripting endpoints. Until now we could generically map the Bean which is handling a script endpoint (provided with a script file and some contexts) to the root QName.

Short: How can we achieve the good old bean endpoint to Root QName mapping without using the deprecated API? Any ideas?

Thank you in advance.

like image 314
Christopher Klewes Avatar asked Apr 27 '11 09:04

Christopher Klewes


1 Answers

Can you use something like the SimpleMethodEndpointMapping to write your own dispatcher? Check the link for the source

like image 92
Miguel Ping Avatar answered Nov 16 '22 04:11

Miguel Ping